{% from "base/ui/state.html" import state_badge %} {% macro job_panel(j) %}
Job Definition
{% if j.limits %} {% else %} {% endif %} {% if j.rate_limits %} {% else %} {% endif %}
Function {{ j.func }}
Keywords {{ j.kwargs }}
Queue {{ j.queue }}
Priority {{ j.priority }}
Max Attempts {{ j.max_attempts }}
Unique Key {{ j.unique_key }}
Resource Limits
    {% for limit in j.limits %}
  • {{ limit }}
  • {% endfor %}
No resource limits set
Rate Limits
    {% for limit in j.rate_limits %}
  • {{ limit }}
  • {% endfor %}
No rate limits set
{% endmacro %} {% macro jobinstance_panel(j) %}
Job Instance
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 %}