{% extends 'generic/_base.html' %} {% load form_helpers %} {% load helpers %} {% load i18n %} {% block title %} {% blocktrans %}Recover Branch {{ branch }}{% endblocktrans %} {% endblock %} {% block tabs %} {% endblock tabs %} {% block content %} {# Form tab #}
{% csrf_token %}

{% trans "Recover Branch" %}

{% blocktrans with status=branch.get_status_display %} This branch is in the {{ status }} state, which means a background job should be working on it. {% endblocktrans %} {{ recovery_description }}

{% trans "Current status" %} {% badge branch.get_status_display bg_color=branch.get_status_color %}
{% trans "Will be reset to" %} {{ new_status_display|placeholder }}
{% trans "Responsible job" %} {% if job %} {{ job.name }} ({% badge job.get_status_display bg_color=job.get_status_color %}) {% if job.started %}
{% trans "Started" %} {{ job.started }}
{% endif %} {% else %} {% trans "No job record found" %} {% endif %}
{% if is_stuck %}
{% blocktrans %} No running job was found for this branch. Its worker most likely terminated before it could finish, so the branch will remain in its current state until it is recovered. {% endblocktrans %}
{% else %}
{% blocktrans %} A job for this branch still appears to be running. Recover it only if you are certain that the operation has stopped — resetting the status of a branch which is still being worked on may allow a second, conflicting operation to be started against it. {% endblocktrans %}
{% endif %} {% if form.retry %}{% render_field form.retry %}{% endif %}
{# /Form tab #} {% endblock content %}