{% extends "page.html" %} {% from "macros/task_state.html" import task_state %} {% block content -%}
{%- set state = core.states[alias] %}
{{ task_state(alias, state, labeling) }}
{%- if state.failures -%}
Failures
    {%- for agent, timestamp in state.failures|dictsort %}
  • {{- "" -}} {{ agent }} {{- "" -}}
  • {%- endfor %}
{%- endif -%} {%- if state.runs -%}
Runs
    {%- for agent, timestamp in state.runs|dictsort %}
  • {{- "" -}} {{ agent }} {{- "" -}}
  • {%- endfor %}
{%- endif -%} {%- if payload.dependencies -%}
Dependencies
    {%- set dependencies = labeling|selectkeys(payload.dependencies) %} {%- for dependency, label in dependencies|dictsort(by="value") %} {%- set satisfied = core.states[dependency].completed %} {{- "" -}} {{ label }} {{- "" -}} {%- endfor %}
{%- endif -%} {%- if payload.logs -%}
Logs
    {%- for agent, log in payload.logs|dictsort %}
  • {{- agent -}}
    {%- for timestamp, message in log|sort -%}
    {{- timestamp|formatdatetime }} — {{ message|highlight -}}
    {%- endfor -%}
  • {%- endfor %}
{%- endif -%}
{%- endblock %}