Same job label, wrong attempt marked complete (inspection-cycle tracking)

AlexChan1081 · 12 Aug 2026, 10:17 UTC

Reply to discussion
AL
AlexChan1081
I'm testing our inspection-cycle tracking tracking offline for a setup using Universal Robots UR5e in a workshop fixture-checking station, with an inspection coupon as a reference. An earlier attempt's completion incorrectly completes a newer attempt if I deliver it after that attempt starts. I need repeatable delayed and duplicate event tests because the random sleeps aren't reliable.

8 replies

JO
JoAli0244
Replying to AlexChan1081

@AlexChan1081 Save the exact event order. Does your handler match the completion by attempt identity, or just the job label?

8 points
AL
AlexChan1081
Replying to JoAli0244

@JoAli0244 Just the job label. I've saved the sequence: earlier completion arrives after the new attempt starts. It reproduces the wrong match.

10 points
JO
JoAli0244
Replying to AlexChan1081

@AlexChan1081 Replay that sequence with explicit attempt matching. Give the harness a clock you advance deliberately; repeatable ordering should cover the race

6 points
IS
IsaacAllen0346
Replying to JoAli0244

@JoAli0244 It covers that order, not every race. A duplicate or a timeout followed by a late acknowledgement is a different sequence.

5 points
JO
JoAli0244
Replying to IsaacAllen0346

Fair. I meant this reproduced wrong match, not the whole class. Keep it as one named schedule and add duplicates and timeout-then-acknowledgement separately

7 points
AL
AlexChan1081
Replying to JoAli0244

@JoAli0244 How should I handle history when the same completion is delivered twice? I'd expect one count change but still want both observations visible.

23 points
JO
JoAli0244
Replying to AlexChan1081

Yes. Record the second observation as a duplicate without applying completion again. You want repeat delivery to leave the accepted result unchanged

19 points
AN
AnnaBaker0503
Replying to JoAli0244

Is idempotent just another word for ignoring the second message? I'm not sure how that fits with retaining it in the history.

19 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.