Added batch process and test

This commit is contained in:
2026-05-10 15:45:01 +02:00
parent e66b6043d8
commit e45601de0a
6 changed files with 91 additions and 29 deletions
+12 -1
View File
@@ -18,11 +18,22 @@
<button class="btn btn-primary">Run Sync Now</button>
{% endif %}
</form>
{% if not sync_running %}
<form method="post" action="/sync/test" style="display:inline">
<button class="btn btn-secondary">Test (1 zip)</button>
</form>
{% endif %}
</div>
</div>
{% if batch_size > 0 %}
<p class="muted small" style="margin-bottom:1.5rem">Batch size: {{ batch_size }} zips per chunk — full sync processes all unprocessed files.</p>
{% endif %}
{% if request.query_params.get("started") %}
<div class="alert alert-success">Sync started in background.</div>
<div class="alert alert-success">Sync started — processing all unprocessed archives{% if batch_size > 0 %} in batches of {{ batch_size }}{% endif %}.</div>
{% endif %}
{% if request.query_params.get("test_started") %}
<div class="alert alert-success">Test sync started — processing 1 archive.</div>
{% endif %}
{% if request.query_params.get("already_running") %}
<div class="alert alert-warning">A sync is already running.</div>