From d848093fb09b95aef04dd92bfa9b79497ba07da3 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Wed, 24 Aug 2016 17:08:20 +0100 Subject: [PATCH] Fixed formatting and typo on beat config. --- app/celery/scheduled_tasks.py | 6 +++--- config.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/celery/scheduled_tasks.py b/app/celery/scheduled_tasks.py index f6144982d..56a67ff1b 100644 --- a/app/celery/scheduled_tasks.py +++ b/app/celery/scheduled_tasks.py @@ -117,6 +117,6 @@ def timeout_notifications(): ", status has been updated.").format(noti.id)) except Exception as e: current_app.logger.exception(e) - current_app.logger.error(( - "Exception raised trying to timeout notification ({})" - ", skipping notification update.").format(noti.id)) + current_app.logger.error( + "Exception raised trying to timeout notification ({}) skipping notification update.".format(noti.id) + ) diff --git a/config.py b/config.py index 9c17b8f21..6d9539552 100644 --- a/config.py +++ b/config.py @@ -52,7 +52,7 @@ class Config(object): CELERYBEAT_SCHEDULE = { 'run-scheduled-jobs': { 'task': 'run-scheduled-jobs', - 'schedule': crontab(minutes=1), + 'schedule': crontab(minute=1), 'options': {'queue': 'periodic'} }, 'delete-verify-codes': {