mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Add scheduler output skeleton.
This commit is contained in:
parent
d41702bc51
commit
ad0c754b8b
@ -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')
|
||||
|
@ -2,6 +2,25 @@
|
||||
|
||||
{% block page_content %}
|
||||
<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>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user