From b0c2f69568b6e6073da72d2dee76d1134375357b Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 13 Aug 2019 14:27:02 +0200 Subject: [PATCH] Rename scheduler function --- app/scheduler_functions.py | 2 +- config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scheduler_functions.py b/app/scheduler_functions.py index b65b6069..4e8325a4 100644 --- a/app/scheduler_functions.py +++ b/app/scheduler_functions.py @@ -6,7 +6,7 @@ import json import os -def check_jobs(): +def checkout_jobs(): app = create_minimal_app(os.getenv('FLASK_CONFIG') or 'default') app.app_context().push() client = docker.from_env() diff --git a/config.py b/config.py index 7358052e..65731c51 100644 --- a/config.py +++ b/config.py @@ -7,8 +7,8 @@ basedir = os.path.abspath(os.path.dirname(__file__)) class Config: JOBS = [ { - 'id': 'check_jobs', - 'func': 'app.scheduler_functions:check_jobs', + 'id': 'checkout_jobs', + 'func': 'app.scheduler_functions:checkout_jobs', 'seconds': 3, 'trigger': 'interval' }