{% extends "generic/object_detail.html" %} {% load helpers %} {% load static %} {% load workflow_extras %} {% block title %}Workflow Run {{ object.pk|truncatechars:8 }}{% endblock title %} {% block extra_styles %} {# Inline fallback so theme/static caching cannot leave the badge unreadable #} {% endblock extra_styles %} {% block header %}
Back to List Run Again {% if object.status == "scheduled" or object.status == "pending_approval" %} {% if perms.nautobot_workflow_engine.change_workflowrun %}
{% csrf_token %}
{% endif %} {% endif %}
Connecting live updates…

{% endblock header %} {% block content %} {% if object.workflow.description %}
Workflow Description

{{ object.workflow.description }}

{% endif %}
Run Overview
Workflow

{{ object.workflow.name }} {% if object.workflow.category %}
{{ object.workflow.category }} {% endif %}

Status

{% if object.status == "success" %} Success {% elif object.status == "failed" %} Failed {% elif object.status == "running" %} Running {% elif object.status == "pending" %} Pending {% elif object.status == "pending_approval" %} Pending Approval {% elif object.status == "scheduled" %} Scheduled {% elif object.status == "canceled" %} Canceled {% elif object.status == "partial" %} Partial {% else %} {{ object.status|title }} {% endif %}

Started By

{{ object.requested_by.username }}

Started

{{ object.started|date:"M d, Y H:i:s" }}

{% if object.scheduled_for %}
Scheduled For

{{ object.scheduled_for|date:"M d, Y H:i:s" }} UTC

{% endif %}
Durations
Execution: {% if object.finished %} {% calculate_duration object.started object.finished as duration %} {{ duration }} {% elif object.status == "running" %} Still running... {% else %} - {% endif %}
Form: {% if object.form_duration_seconds is not None %} {{ object.form_duration_seconds }}s {% else %} 60s {% endif %}
Run ID

{{ object.pk }}

Workflow Inputs
{% if object.inputs %}
{% for key, value in object.inputs.items %} {% endfor %}
Parameter Value
{{ key }} {% if value %} {{ value }} {% else %} - {% endif %}
{% else %}

No inputs provided

{% endif %}
{% if object.awx_runs.exists %}
AWX Jobs
{% for awx_run in object.awx_runs.all %} {% endfor %}
Template ID Job ID Status Action
{{ awx_run.template_id }} {% if awx_run.job_id %} {% if awx_run.url %} {{ awx_run.job_id }} {% else %} {{ awx_run.job_id }} {% endif %} {% else %} - {% endif %} {% if awx_run.status == "successful" %} {{ awx_run.status }} {% elif awx_run.status == "failed" %} {{ awx_run.status }} {% elif awx_run.status == "running" %} {{ awx_run.status }} {% else %} {{ awx_run.status }} {% endif %} {% if awx_run.url %} View in AWX {% endif %}
{% endif %}
User Log
{% if object.user_log %}
{{ object.user_log }}
{% else %}

No user-facing output available

{% endif %}
Debug Log
{% if object.log %}
{{ object.log }}
{% else %}

No log output available

{% endif %}
{% endblock content %}