mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Rename scheduler function
This commit is contained in:
parent
e3ceb19f7a
commit
b0c2f69568
@ -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__))
|
|||||||
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'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user