Jonas L
9c548b365e
feat: start celery worker programmatically ( #2988 )
...
### Description
Allow us to be more flexible with the option passed the celery worker,
for example, to change the logging level.
2024-04-13 21:03:57 +02:00
Jonas L
7040d0e4bd
fix: trigger legacy tasks manager every 5m ( #2987 )
...
### Description
This ensures that when the LibreTime interface is not used for a long
time, we still have the task manager run essential tasks for the
schedule.
Related to #2670
2024-04-13 19:12:45 +02:00
Jonas L
3f396895e5
fix(worker): unbound variable when episode url returns HTTP 404 ( #2844 )
...
### Description
When the episode URL return a 404, the tmp_file is never set, and we
have an unbound variable exception.
2023-12-28 14:05:35 +01:00
jo
b7214b5d46
feat: add sentry sdk
2023-03-14 14:59:45 +00:00
jo
a60d83311b
feat: add python packages version
2023-03-14 14:59:45 +00:00
jo
861698987c
refactor: don't use f-string on logging statements
...
The strings are now be formatted if the logging level is enabled.
2023-02-26 19:09:51 +02:00
jo
dbf4667bd8
fix(worker): replace deprecated cgi.parse_header
2022-12-07 15:59:52 +02:00
Jonas L
b1ac153a3e
fix(worker): configure celery timezone ( #2169 )
...
This should not change behavior, as nothing relies on datetime. Though this should enforce current server timezone for any future tasks.
2022-09-20 21:41:18 +02:00
jo
08a44186aa
fix(worker): rewrite podcast download task
...
- Fixes bad exception handling when facing an invalid podcast episode file. Fix #2083
2022-09-12 10:50:02 +02:00
jo
11c55d26dc
refactor(worker): add types and rewrite docstring
2022-09-09 14:44:37 +02:00
jo
ab6cebb6ed
refactor(worker): rewrite extract_filename from download
2022-09-09 14:44:37 +02:00
Jonas L
1147853c63
feat(shared): pass config data via init ( #2042 )
2022-08-12 15:12:39 +02:00
Jonas L
d93731807c
feat(worker): load callback details from config ( #1994 )
2022-07-26 14:18:41 +02:00
jo
29c174b85e
feat(worker): set celery timezone to UTC
2022-03-04 22:18:29 +02:00
jo
9b6d657fd6
feat(worker): load config using shared helpers
...
BREAKING CHANGE: The worker `RMQ_CONFIG_FILE` environement variable has
been renamed to `LIBRETIME_CONFIG_FILEPATH`. In addition the systemd
working directory for the worker has changed from `/srv/airtime` to
`/var/lib/libretime/worker`.
2022-02-25 11:48:57 +02:00
jo
32cb67806a
chore: add pyupgrade pre-commit hook
...
- add --py3-plus flag to pyupgrade hook
- add --py36-plus flag to pyupgrade hook
2022-01-27 10:37:48 +02:00
jo
ccb8a234b8
chore: fixes after libretime_worker rename
2022-01-04 09:18:58 +02:00
jo
39c6acdd8a
chore: rename airtime-celery to libretime_worker
2022-01-04 09:18:58 +02:00