Skip to content
Snippets Groups Projects
Commit b0c2f695 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Rename scheduler function

parent e3ceb19f
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ import json ...@@ -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()
......
...@@ -7,8 +7,8 @@ basedir = os.path.abspath(os.path.dirname(__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'
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment