Added batch process and test
This commit is contained in:
+12
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user