Use the TaskHistory.id column
This commit is contained in:
1 parent
802716047c
commit
129925af58
1 file changed
+3
-6
@@ -55,11 +55,9 @@
|
||||
Error: "{{ task.error_message }}"<br>
|
||||
</a>
|
||||
<i class="fas fa-history"></i> Task will be retried at <strong>{{ task.scheduled_at|date:'Y-m-d H:i:s' }}</strong>
|
||||
{% if '-' not in task.task_id %}
|
||||
<a href="{% url 'sync:run-task' pk=task.task_id %}" class="error-text">
|
||||
<a href="{% url 'sync:run-task' pk=task.pk %}" class="error-text">
|
||||
<i class="fas fa-undo"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% empty %}
|
||||
<span class="collection-item no-items"><i class="fas fa-info-circle"></i> There are no tasks with errors on this page.</span>
|
||||
@@ -87,11 +85,10 @@
|
||||
<i class="fas fa-chart-bar fa-rotate-270"></i>
|
||||
</span> Priority: {{ task.priority }} Queue: {{ task.queue }}<br>
|
||||
<i class="far fa-clock"></i> Task will run {% if task.run_now %}<strong>immediately</strong>{% else %}at <strong>{{ task.scheduled_at|date:'Y-m-d H:i:s' }}</strong>
|
||||
{% if '-' not in task.task_id %}
|
||||
</a>
|
||||
<a href="{% url 'sync:run-task' pk=task.task_id %}">
|
||||
<a href="{% url 'sync:run-task' pk=task.pk %}">
|
||||
<i class="far fa-play-circle"></i>
|
||||
{% endif %}{% endif %}
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
{% empty %}
|
||||
|
||||
Reference in new issue
Block a user