{% extends "base.html" %} {% block title %}Execution — nlght Admin{% endblock %} {% block content %} {% set r = record %}

← Executions

{{ workflow_name }} {{ state.label }} {% if r.cancel_requested and r.status.value != 'cancelled' %}cancel requested{% endif %}

{{ r.execution_id }}

{% if r.parent_execution_id %}

Child of {{ r.parent_execution_id }} — it was handed one share of that run's work.

{% endif %}

Run

{% if fan_out %} {# The rows above are this execution's. These are the run's, and for a fan-out the two are nowhere near each other: the distribution is over in a second or two, the corpus it handed out takes as long as it takes. #} {% endif %} {% if r.status.value in ('queued',) %} {% endif %} {% if r.owner_worker_id %} {% endif %}
This execution {{ r.status.value }} {% if state.detail %} — {{ state.detail }}{% endif %}
Correlation id{{ r.trigger.context.correlation_id }}
Operation{{ r.trigger.operation }} ({{ r.trigger.kind.value }} / {{ r.trigger.protocol.value }})
Idempotency key{{ r.idempotency_key }}
Attempts{{ r.attempt_count }} of {{ r.max_attempts }}
Required capabilities{% if r.required_capabilities %}{{ r.required_capabilities | join(', ') }}{% else %}any worker{% endif %}
Created{{ r.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
Started{% if r.started_at %}{{ r.started_at.strftime('%Y-%m-%d %H:%M:%S') }}{% else %}not yet{% endif %}
Completed{% if r.completed_at %}{{ r.completed_at.strftime('%Y-%m-%d %H:%M:%S') }}{% else %}—{% endif %}
Duration{{ r | duration }}{% if fan_out %} — this execution only; it ended by handing the work out{% endif %}
Run finished {% if timing.running %}not yet — {{ fan_out.pending }} of {{ fan_out.total }} children still to finish {% else %}{{ timing.finished_at | at }} — when the last child settled{% endif %}
Run duration {{ timing.elapsed | span }} {% if timing.running %} and counting{% endif %}
Child time {{ timing.child_time | span }} — summed over every child's own run, so far {% if timing.parallel_factor %}
about {{ '%.1f' | format(timing.parallel_factor) }}× the run's own duration: that is the work the pool did in parallel {% endif %}
Next attempt{{ r.next_attempt_at.strftime('%Y-%m-%d %H:%M:%S') }}
Held by{{ r.owner_worker_id }}{% if r.lease_expires_at %} — lease until {{ r.lease_expires_at.strftime('%H:%M:%S') }}{% endif %}
{% if r.diagnostics %}

Why it failed

{{ r.diagnostics | pretty_json }}
{% endif %} {% if attempts %}

Attempts

{# The record says where a run ended up; this says how it got there. A run that succeeded on its third try is indistinguishable from one that succeeded outright unless someone can read this. #} {% for attempt in attempts %} {% if attempt.diagnostics %} {% endif %} {% endfor %}
#WorkerStatusStartedCompletedFencing
{{ attempt.attempt_number }} {{ attempt.instance_name }} {{ attempt.status }} {% if attempt.started_at %}{{ attempt.started_at.strftime('%H:%M:%S') }}{% else %}—{% endif %} {% if attempt.completed_at %}{{ attempt.completed_at.strftime('%H:%M:%S') }}{% else %}—{% endif %} {{ attempt.fencing_token }}
{{ attempt.diagnostics | pretty_json }}
{% endif %} {% if fan_out %}

Children

This run fanned its work out across the worker pool and ended without waiting. {{ fan_out.succeeded }} of {{ fan_out.total }} children have succeeded, {{ fan_out.failed }} failed, {{ fan_out.cancelled }} cancelled, {{ fan_out.pending }} still in flight. {% if fan_out.settled %}
Every child has settled — the logical run is finished. {% else %}
The run is not finished: this execution succeeded by handing the work out, and the children below are what is still doing it.{% endif %}

{% for child in children %} {% endfor %}
Correlation idStatusAttemptsDuration
{{ child.trigger.context.correlation_id }} {{ child.status.value }} {{ child.attempt_count }}{% if child.attempt_count > 1 %} retried{% endif %} {{ child | duration }} Open
{% if fan_out.total > child_limit %} {% endif %}
{% endif %}

Trigger payload

{{ r.trigger.payload | pretty_json }}
{% if r.result %}

Result

{{ r.result | pretty_json }}
{% endif %} {% endblock %}