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' }