From e2e788c25e1ae220b6b47feba5b47272ef9e9f0f Mon Sep 17 00:00:00 2001 From: Nguyen Viet Dung <29406816+magnified103@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:30:58 +0700 Subject: [PATCH] Lint fix --- dmoj/celery.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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