mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-02 02:40:35 +00:00
Use Flask-APScheduler. Move docker swarm logic to scheduler.
This commit is contained in:
@ -5,6 +5,14 @@ basedir = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
||||
class Config:
|
||||
JOBS = [
|
||||
{
|
||||
'id': 'check_jobs',
|
||||
'func': 'app.scheduler_functions:check_jobs',
|
||||
'seconds': 3,
|
||||
'trigger': 'interval'
|
||||
}
|
||||
]
|
||||
MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.gmail.com')
|
||||
MAIL_PORT = int(os.environ.get('MAIL_PORT', '587'))
|
||||
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS', 'true').lower() in \
|
||||
|
Reference in New Issue
Block a user