diff --git a/dmoj/celery.py b/dmoj/celery.py index 8bf491ddb..d5c9a31a8 100644 --- a/dmoj/celery.py +++ b/dmoj/celery.py @@ -27,11 +27,12 @@ 'task': 'judge.tasks.webhook.queue_time_stats', 'schedule': crontab(minute=0, hour=0), 'options': { - 'expires': 60*60*24, - } - } + 'expires': 60 * 60 * 24, + }, + }, } + @task_failure.connect() def celery_failure_log(sender, task_id, exception, traceback, *args, **kwargs): logger.error('Celery Task %s: %s on %s', sender.name, task_id, socket.gethostname(), # noqa: G201