{{ pagination(
paging,
url_for('.list_background_jobs', sourcename=source_name, page=paging.page-1, sort=sort_field, direction=sort_direction, filter=state_filter.name),
url_for('.list_background_jobs', sourcename=source_name, page=paging.page+1, sort=sort_field, direction=sort_direction, filter=state_filter.name)
) }}
{% call visualize_sorting(sort_field, sort_direction, 'name') %}
Name
{% endcall %}
|
{% call visualize_sorting(sort_field, sort_direction, 'state') %}
State
{% endcall %}
|
{% call visualize_sorting(sort_field, sort_direction, 'creation_date') %}
Creation date
{% endcall %}
|
{% call visualize_sorting(sort_field, sort_direction, 'start_date') %}
Start date
{% endcall %}
|
{% call visualize_sorting(sort_field, sort_direction, 'end_date') %}
End date
{% endcall %}
|
Error |
{% for job in background_jobs %}
{% if background_job is not none and job.db_id == background_job.db_id %}
{% else %}
{% endif %}
{{ job.name}}
|
{{ job.state.value|capitalize}} |
{{ job.creation_date|datetimeformat}} |
{{ job.start_date|datetimeformat}} |
{{ job.end_date|datetimeformat}} |
{% if job.error is not none %}
{% endif %}
|
{% if job.error is not none %}
|
{% endif %}
{% if background_job is not none and job.db_id == background_job.db_id %}
{% if background_job.arguments|count > 0 %}
Arguments
Name |
Value |
{% for name, argument in background_job.arguments|dictsort %}
{{ name }} |
{% if name == 'series_id' %}
{{ argument }}
|
{% else %}
{{ argument }} |
{% endif %}
{% endfor %}
{% endif %}
{% if tasks|count > 0 %}
Tasks
Name |
State |
Error |
{% for task in tasks|sort(attribute='name') %}
{{ task.name }} |
{{ task.state.value|capitalize }} |
{% if task.error is not none %}
{% endif %}
|
{% if task.error is not none %}
|
{% endif %}
{% endfor %}
{% endif %}
|
{% endif %}
{% endfor %}
{{ pagination(
paging,
url_for('.list_background_jobs', sourcename=source_name, page=paging.page-1, sort=sort_field, direction=sort_direction, filter=state_filter.name),
url_for('.list_background_jobs', sourcename=source_name, page=paging.page+1, sort=sort_field, direction=sort_direction, filter=state_filter.name)
) }}
{% else %}
No background jobs matching filter criteria found.
{% endif %}
{% endblock %}