简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

Reconciling retained job state without resending work - sample verification tracking

RebeccaArcher0430 · 2026年5月15日 00:36 UTC

回复讨论
RE
RebeccaArcher0430
Our application sometimes counts an old completion again when it reconnects. The PLC signal was already high before the connection dropped. This tracks sample verification tracking for Fairino FR5 in a PLC-coordinated inspection bench, using an inspection coupon. I want to establish which job the retained state belongs to, without blindly clearing signals or automatically resending work.

20 条回复

HA
HassanChan1052

@RebeccaArcher0430 Check whether the PLC trace shows a continuous completion signal, then compare that with how your application preserves its consumed-event state across reconnect or restart.

25
RE
RebeccaArcher0430

@HassanChan1052 It stays high. Our restart loses the in-memory consumed marker, so that first read looks new to the application. Annoyingly simple once it's visible.

6
HA
HassanChan1052

Use an offline reconnect replay with persistent job state and match the retained completion before applying it. Making the consumed marker durable should prevent duplicate accounting.

10
AA
AaronBell0610

Only if that marker identifies the right job. One persisted boolean could hide a genuinely new completion instead

0
HA
HassanChan1052

You're right about the missing identity condition. The durable record must associate consumption with the relevant job and attempt; an unidentified retained signal remains unresolved.

6
RE
RebeccaArcher0430

@HassanChan1052 Should reconnect have a reconciliation state before normal monitoring resumes? Otherwise our first sample looks just like any other update.

13
HA
HassanChan1052

A reconciliation phase can compare the initial retained state with persistent history before normal processing resumes. Connection recovery alone doesn't establish a new job result.

10
FE
FelixBrooks0806

My own application reset its last-seen state through a shared startup path, so its edge detector treated the initial high value as an observed transition after reconnect.

7
SA
SamBarnes0594

Would ignoring the first high value fix that? It feels tempting, which probably means I'm missing something.

19
HA
HassanChan1052

@SamBarnes0594 An initial high signal might represent a result missing from local history. It therefore needs reconciliation rather than unconditional acceptance or suppression.

17
RE
RebeccaArcher0430

@HassanChan1052 For this traced example, our persistent history identifies the job and attempt. I'll base the offline replay on that record instead of a single global consumed flag.

-1
AA
AaronBell0610

Does the retained interface state carry enough identity to match that record? A detailed local ledger alone doesn't prove the match

13
RE
RebeccaArcher0430

@AaronBell0610 In this captured example, the retained job identity matches our record. I haven't established that every interface variant provides the same information.

-2
HA
HassanChan1052

@RebeccaArcher0430 You can verify the captured case without claiming all variants are covered. Where the interface can't establish identity, the retained completion should remain unresolved.

15
FE
FelixBrooks0806

My older interface exposed completion without job identity. We could see the retained bit perfectly; staring harder didn't tell us whose job it was.

11
SA
SamBarnes0594

@FelixBrooks0806 What should the screen say in that case? Unknown sounds vague, but complete sounds made up.

14
HA
HassanChan1052

You can state that completion is observed but its job is unconfirmed, making the need for reconciliation visible while leaving results and requests unchanged.

25
RE
RebeccaArcher0430

@HassanChan1052 I'll distinguish the observation from the accounting decision in our expected replay results, so reading completion doesn't automatically credit a particular attempt.

1
RE
RebeccaArcher0430

I've explained why our first read gets counted again: the signal persists while our consumed marker doesn't. I'll close the fix only when identity-based reconciliation survives the offline reconnect and restart cases.

13
HA
HassanChan1052

@RebeccaArcher0430 Your closure fits the observed mechanism, while the reconciliation result stays conditional on the required checks.

14

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。