diff --git a/app/scheduler/views.py b/app/scheduler/views.py index 6ec0f011..49350d6d 100644 --- a/app/scheduler/views.py +++ b/app/scheduler/views.py @@ -12,10 +12,11 @@ def scheduler(): 'creator': current_user.id, 'files': ['file_1', 'file_2', 'file_3'], 'service': 'ocr', - 'args': { + 'service_args': { 'lang': 'deu' - } + }, + 'status': 'queued' } job = background_scheduler.add_job(print, trigger='date', args=[job]) - print(job) + print(background_scheduler.get_jobs()) return render_template('scheduler/index.html.j2', title='Scheduler') diff --git a/app/templates/scheduler/index.html.j2 b/app/templates/scheduler/index.html.j2 index 8461d298..aaa3a40b 100644 --- a/app/templates/scheduler/index.html.j2 +++ b/app/templates/scheduler/index.html.j2 @@ -2,6 +2,25 @@ {% block page_content %}
creator | +files | +service | +service_args | +status | +
---|