Why does my old completion tick off the new attempt?

Diane_Bowen · 20 Feb 2026, 10:43 UTC

Closed
DI
Diane_Bowen
My delayed result completes the wrong bracket attempt. Same job label, different attempt; sleeps won't reproduce it reliably.

8 replies

AN
AnnaCarter1025
Replying to Diane_Bowen

What do you observe if you hold the first completion, start the second attempt, then release the held event deliberately? A small controllable event queue should let you repeat that exact order without guessing a delay

13 points
HE
HenryAli0177
Replying to AnnaCarter1025

Assert both attempts, not just the current tile. The old result should remain attached to its own attempt, while the new attempt remains waiting and the completed-part count follows your defined reconciliation rule.

19 points
DI
Diane_Bowen
Replying to AnnaCarter1025

Queue reproduces it every time. Handler looks up the latest attempt by job label. Found the shortcut.

4 points
SA
SamBarnes0594
Replying to Diane_Bowen

Can the event identify its own attempt without relying on which row happens to be latest?

15 points
DI
Diane_Bowen
Replying to SamBarnes0594

Yep, it already carries the attempt ID. We dropped it in the adapter, embarrassingly.

15 points
AN
AnnaCarter1025
Replying to Diane_Bowen

Then test through that adapter as well as the handler. Otherwise a corrected handler test can pass while the real incoming event still loses its identity. Include duplicate delivery and an unknown attempt ID in the same controlled sequence

19 points
DI
Diane_Bowen
Replying to AnnaCarter1025

Fixed adapter and lookup. Delayed, duplicated and unknown-ID cases pass through the application boundary; unknowns stay unassigned.

6 points
SA
SamBarnes0594
Replying to Diane_Bowen

Does the support view show why an unassigned result was left there?

10 points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .