Skip to content

Commit

Permalink
chore:increase Celery task time limit to 30 minutes.
Browse files Browse the repository at this point in the history
Updated the `CELERY_TASK_TIME_LIMIT` from 15 minutes to 30 minutes to accommodate longer-running tasks. This change ensures smoother operation for tasks requiring extended processing time.
  • Loading branch information
hareshkainthdbt committed Jan 14, 2025
1 parent 6cac8a1 commit 68b6483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fbr/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
CELERY_BEAT_SCHEDULER = "django_celery_beat.schedulers.DatabaseScheduler"
CELERY_RESULT_EXTENDED = True
CELERY_TASK_TIME_LIMIT = (
900 # Maximum runtime for a task in seconds (e.g., 900/60 = 15 minutes)
1800 # Maximum runtime for a task in seconds (e.g., 1800/60 = 30 minutes)
)
CELERY_TASK_SOFT_TIME_LIMIT = (
270 # Optional: Grace period before forced termination
Expand Down

0 comments on commit 68b6483

Please sign in to comment.