feat: Add retry functionality for jobs and update UI to support job retries

This commit is contained in:
JB
2025-10-09 11:46:38 -07:00
parent 9828730061
commit 205c435e72
4 changed files with 85 additions and 0 deletions
+3
View File
@@ -69,6 +69,9 @@
</div>
<div class="job-card__footer">
<a class="button button--ghost" href="{{ url_for('web.job_detail', job_id=job.id) }}">Inspect</a>
{% if job.status in [JobStatus.COMPLETED, JobStatus.FAILED, JobStatus.CANCELLED] %}
<button type="button" class="button button--ghost" hx-post="{{ url_for('web.retry_job', job_id=job.id) }}" hx-target="#jobs-panel" hx-swap="innerHTML">Retry</button>
{% endif %}
{% if job.status == JobStatus.COMPLETED and job.result.audio_path %}
<a class="button button--ghost" href="{{ url_for('web.download_job', job_id=job.id) }}">Download</a>
{% endif %}