File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 180180 "baserow.contrib.database.table.tasks.run_row_count_job" : {"queue" : "export" },
181181 "baserow.core.jobs.tasks.clean_up_jobs" : {"queue" : "export" },
182182}
183- CELERY_TASK_SOFT_TIME_LIMIT = 60 * 5 # 5 minutes
184- CELERY_TASK_TIME_LIMIT = CELERY_TASK_SOFT_TIME_LIMIT + 60 # 60 seconds
183+ CELERY_TASK_SOFT_TIME_LIMIT = int (
184+ os .getenv ("CELERY_TASK_SOFT_TIME_LIMIT" ) or 60 * 5
185+ ) # default 5 minutes
186+ CELERY_TASK_TIME_LIMIT = CELERY_TASK_SOFT_TIME_LIMIT + 60 # default 6 minutes
185187
186188CELERY_REDBEAT_REDIS_URL = REDIS_URL
187189# Explicitly set the same value as the default loop interval here so we can use it
Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ def beat_send_instant_notifications_summary_by_email(self):
113113 bind = True ,
114114 queue = "export" ,
115115 raise_on_duplicate = True ,
116- lock_expiry = 60 * 5 ,
116+ lock_expiry = settings .CELERY_TASK_TIME_LIMIT * 2 ,
117+ time_limit = settings .CELERY_TASK_TIME_LIMIT * 2 ,
117118)
118119def singleton_send_instant_notifications_summary_by_email (self ):
119120 send_instant_notifications_email_to_users ()
You can’t perform that action at this time.
0 commit comments