Skip to content

Commit

Permalink
Fixed stale time limit settings
Browse files Browse the repository at this point in the history
  • Loading branch information
matllubos committed Nov 22, 2022
1 parent 87e1cac commit 7041a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_celery_extensions/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ def _get_stale_time_limit(self, expires, time_limit, stale_time_limit, trigger_t

if stale_time_limit is not None:
return stale_time_limit
elif stale_time_limit is not None:
return stale_time_limit
elif self.stale_time_limit is not None:
return self.stale_time_limit
elif settings.DEFAULT_TASK_STALE_TIME_LIMIT is not None:
return settings.DEFAULT_TASK_STALE_TIME_LIMIT
elif time_limit is not None and max_queue_waiting_time:
Expand Down

0 comments on commit 7041a25

Please sign in to comment.