Rename scheduler function

This commit is contained in:
Patrick Jentsch 2019-08-13 14:27:02 +02:00
parent e3ceb19f7a
commit b0c2f69568
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import json
import os import os
def check_jobs(): def checkout_jobs():
app = create_minimal_app(os.getenv('FLASK_CONFIG') or 'default') app = create_minimal_app(os.getenv('FLASK_CONFIG') or 'default')
app.app_context().push() app.app_context().push()
client = docker.from_env() client = docker.from_env()

View File

@ -7,8 +7,8 @@ basedir = os.path.abspath(os.path.dirname(__file__))
class Config: class Config:
JOBS = [ JOBS = [
{ {
'id': 'check_jobs', 'id': 'checkout_jobs',
'func': 'app.scheduler_functions:check_jobs', 'func': 'app.scheduler_functions:checkout_jobs',
'seconds': 3, 'seconds': 3,
'trigger': 'interval' 'trigger': 'interval'
} }