Skip to content

Commit

Permalink
update mask task duration
Browse files Browse the repository at this point in the history
  • Loading branch information
NvdLaan committed Nov 27, 2024
1 parent bdab48e commit 8c40baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,22 +514,22 @@ def get_redis_url():
}

CELERY_TASK_TRACK_STARTED = True
CELERY_TASK_TIME_LIMIT = 30 * 60
CELERY_BROKER_URL = get_redis_url()
CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True
BROKER_CONNECTION_MAX_RETRIES = None
BROKER_CONNECTION_TIMEOUT = 120
BROKER_URL = CELERY_BROKER_URL
CELERY_TASK_TRACK_STARTED = True
CELERY_RESULT_BACKEND = "django-db"
CELERY_TASK_TIME_LIMIT = 30 * 60
CELERY_TASK_TIME_LIMIT = 5400 # 1,5 hours
CELERY_BEAT_SCHEDULE = {
"queue_every_five_mins": {
"task": "apps.health.tasks.query_every_five_mins",
"schedule": crontab(minute=5),
},
}


CELERY_BROKER_TRANSPORT_OPTIONS = {
"socket_keepalive": True,
"socket_keepalive_options": {
Expand Down

0 comments on commit 8c40baa

Please sign in to comment.