Use the TaskHistory.id column

This commit is contained in:
tcely authored and GitHub committed 2025-07-17 19:18:01 -04:00
1 parent 802716047c
commit 129925af58
1 file changed
+3 -6
+3 -6
View File
@@ -55,11 +55,9 @@
Error: &quot;{{ task.error_message }}&quot;<br> Error: &quot;{{ task.error_message }}&quot;<br>
</a> </a>
<i class="fas fa-history"></i> Task will be retried at <strong>{{ task.scheduled_at|date:'Y-m-d H:i:s' }}</strong> <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.pk %}" class="error-text">
<a href="{% url 'sync:run-task' pk=task.task_id %}" class="error-text">
<i class="fas fa-undo"></i> <i class="fas fa-undo"></i>
</a> </a>
{% endif %}
</div> </div>
{% empty %} {% empty %}
<span class="collection-item no-items"><i class="fas fa-info-circle"></i> There are no tasks with errors on this page.</span> <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> <i class="fas fa-chart-bar fa-rotate-270"></i>
</span> Priority:&nbsp;{{ task.priority }}&nbsp;Queue:&nbsp;{{ task.queue }}<br> </span> Priority:&nbsp;{{ task.priority }}&nbsp;Queue:&nbsp;{{ 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> <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>
<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> <i class="far fa-play-circle"></i>
{% endif %}{% endif %} {% endif %}
</a> </a>
</div> </div>
{% empty %} {% empty %}