Skip to content

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

Open
Ghesselink wants to merge 3 commits into
developmentfrom
IVS-673_Premature_Progress_Completion
Open

IVS-673: advance progress only after a task completes#307
Ghesselink wants to merge 3 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 and others added 3 commits June 29, 2026 12:59
Prevents reporting 100% while instance completion still runs; atomic
Least(F(progress)+inc, 100) update avoids the parallel-stage race.
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