You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of outage make sure Celery will pick up the tasks that were supposed to run while the system was off (if this makes sense in your business logic).
Bad:
# Messages for some tasks won't be sent if the outage lasts one day
for task in Tasks.objects.filter(due_to=today):
send_messages()
Better:
for task in Tasks.objects.filter(due_to__lte=today, sent=False):
send_messages()
The text was updated successfully, but these errors were encountered:
filipeximenes
changed the title
Check tasks
Check tasks will be automatically picked up in case of outage
Aug 21, 2017
In case of outage make sure Celery will pick up the tasks that were supposed to run while the system was off (if this makes sense in your business logic).
Bad:
Better:
The text was updated successfully, but these errors were encountered: