{% extends "base.html" %} {% import "_pagination.html" as pagination %} {% import "_batches.html" as badges %} {% block title %}Batches - Control Plane{% endblock %} {% block content %} {% if schema_missing %}

Batches are not installed

The batches schema (batches, batch_executions and jobs.batch_id) is missing. Run Quebec.create_tables(), or on a Rails-managed database the Solid Queue add_batches_to_solid_queue migration.

{% else %}
Clear
{% set filter_args = "" %} {% if filter_status %}{% set filter_args = "status=" ~ filter_status %}{% endif %}
{% if batches|length > 0 %} {% for batch in batches %}
{{ badges::status_badge(status=batch.status) }}
Progress
{{ batch.completed_jobs }} / {{ batch.total_jobs }}{% if batch.failed_jobs > 0 %} · {{ batch.failed_jobs }} failed{% endif %}
Created
{{ batch.created_at }}
{% if batch.finished_at %}
Finished
{{ batch.finished_at }}
{% endif %}
{% endfor %} {% else %}
No batches found
{% endif %}
{{ pagination::bar(base_path=base_path, path="batches", page=current_page_num, total_pages=total_pages, filter_args=filter_args) }} {% endif %}
{% endblock %}