env: Support celery task_time_limit from env

This commit is contained in:
Gato Grande 2025-04-25 00:03:51 +00:00 committed by petitminion
parent 7b18ad82ef
commit 4953b05800
3 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,8 @@ C_FORCE_ROOT=true
PYTHONDONTWRITEBYTECODE=true
PYTHONTRACEMALLOC=0
CELERY_TASK_TIME_LIMIT=300
# api
FUNKWHALE_SPA_HTML_ROOT=http://nginx/

View File

@ -916,7 +916,7 @@ Example:
# Your common stuff: Below this line define 3rd party library settings
CELERY_TASK_DEFAULT_RATE_LIMIT = 1
CELERY_TASK_TIME_LIMIT = 300
CELERY_TASK_TIME_LIMIT = env.int("CELERY_TASK_TIME_LIMIT", default=300)
CELERY_BEAT_SCHEDULE = {
"audio.fetch_rss_feeds": {
"task": "audio.fetch_rss_feeds",

View File

@ -0,0 +1 @@
Support setting CELERY_TASK_TIME_LIMIT from environment