Skip to content

IVS-673: advance progress only after a task completes#307

Merged
Ghesselink merged 4 commits into
developmentfrom
IVS-673_Premature_Progress_Completion
Jun 30, 2026
Merged

IVS-673: advance progress only after a task completes#307
Ghesselink merged 4 commits into
developmentfrom
IVS-673_Premature_Progress_Completion

Conversation

@Ghesselink

Copy link
Copy Markdown
Contributor

Problem

A file briefly shows "100% complete" while Instance Completion is still running.
Each subtask bumped request.progress at its start, and the increments sum to exactly
100 — so the final task tipped the bar to 100 before doing its work.

Fix

Advance request.progress only after a task's execution + processing finish. The update
is atomic — Least(F("progress") + increment, 100) — to avoid the parallel-stage
read-modify-write race. Failed tasks return early and don't advance progress.

Tests

tests_progress_update.py (3): progress advances only after work completes (fails on the
pre-fix code with 10 != 0), clamps at 100, and a failed task doesn't advance.

@Ghesselink Ghesselink merged commit 137ecee into development Jun 30, 2026
3 checks passed
@Ghesselink Ghesselink deleted the IVS-673_Premature_Progress_Completion branch June 30, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant