A previous plate result closes the current inspection after our application restarts

ChenAdams0094 · 31 Jan 2026, 13:27 UTC

Closed
CH
ChenAdams0094
Our offline FR10 inspection model reuses its attempt counter after an application restart. A queued result then matches the new attempt number and closes the wrong inspection. I understand why the numbers collide, but I am unsure how much identity needs to survive the restart.

5 replies

NA
NathanChen1156
Replying to ChenAdams0094

The identity must remain unique across that restart boundary. Use a persisted unique attempt identity or combine the counter with a session identity that cannot be mistaken for the old one. Can an old result still be valid work awaiting reconciliation?

18 points
CH
ChenAdams0094
Replying to NathanChen1156

Yes. Restart does not mean the plate inspection was abandoned. Our current test starts a new attempt immediately, which may itself be wrong. I need to show an unfinished inspection without letting its result attach to another plate.

8 points
NA
NathanChen1156
Replying to ChenAdams0094

Then model the unfinished work explicitly. Restart should recover it or leave it awaiting reconciliation. Do not quietly create replacement work. Test an old result arriving before recovery, after recovery, and after an operator has deliberately closed the old attempt.

24 points
CH
ChenAdams0094
Replying to NathanChen1156

We changed the test to recover the stored attempt first. Its late result now completes that inspection, and a different attempt remains untouched. The closed-attempt case is still undecided: the result is retained separately, but we have not agreed what the operator should see.

3 points
NA
NathanChen1156
Replying to ChenAdams0094

Show which closed attempt it belongs to and that it arrived after closure. Someone needs to decide whether that requires action. Hiding it entirely would make the next investigation needlessly entertaining.

11 points

Discussion closed

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