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

Add scheduler output skeleton.

parent d41702bc
No related branches found
No related tags found
No related merge requests found
...@@ -12,10 +12,11 @@ def scheduler(): ...@@ -12,10 +12,11 @@ def scheduler():
'creator': current_user.id, 'creator': current_user.id,
'files': ['file_1', 'file_2', 'file_3'], 'files': ['file_1', 'file_2', 'file_3'],
'service': 'ocr', 'service': 'ocr',
'args': { 'service_args': {
'lang': 'deu' 'lang': 'deu'
} },
'status': 'queued'
} }
job = background_scheduler.add_job(print, trigger='date', args=[job]) 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') return render_template('scheduler/index.html.j2', title='Scheduler')
...@@ -2,6 +2,25 @@ ...@@ -2,6 +2,25 @@
{% block page_content %} {% block page_content %}
<div class="col s12"> <div class="col s12">
<div class="card">
<div class="card-content">
<span class="card-title">All jobs</span>
<table>
<thead>
<tr>
<th>creator</th>
<th>files</th>
<th>service</th>
<th>service_args</th>
<th>status</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment