Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magnified103 committed Sep 24, 2024
1 parent ceecc77 commit e2e788c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dmoj/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2e788c

Please sign in to comment.