{% from "base/ui/state.html" import state_badge %}
{% macro job_panel(j) %}
Function |
{{ j.func }} |
Keywords |
{{ j.kwargs }}
|
Queue |
{{ j.queue }}
|
Priority |
{{ j.priority }}
|
Max Attempts |
{{ j.max_attempts }}
|
Unique Key |
{{ j.unique_key }}
|
Resource Limits |
{% if j.limits %}
{% for limit in j.limits %}
-
{{ limit }}
{% endfor %}
|
{% else %}
No resource limits set
|
{% endif %}
Rate Limits |
{% if j.rate_limits %}
{% for limit in j.rate_limits %}
-
{{ limit }}
{% endfor %}
|
{% else %}
No rate limits set
|
{% endif %}
{% endmacro %}
{% macro jobinstance_panel(j) %}
Job ID |
{{ j.id }} |
State |
{{ state_badge(j.state.value) }}
|
Started At |
{% if j.started_at %}
{{ j.started_at }}
{% else %}
Not started yet
{% endif %}
|
Completed At |
{% if j.completed_at %}
{{ j.completed_at }}
{% else %}
Not completed yet
{% endif %}
|
Attempts |
{{ j.attempts }} / {{ j.max_attempts }} |
{% endmacro %}