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

Why does restarting Python count as permission to repeat the inspection?

DanielBennett0739 · 2026年9月4日 11:35 UTC

回复讨论
DA
DanielBennett0739
Our FR5 inspection request may have run after Python crashed, but startup sees the unfinished file and queues it again. I found this while reviewing a saved failure log, not by rerunning the cell. How should we represent an attempt that might already have happened?

17 条回复

JU
JuliaBrown0935

It needs an uncertain state that is excluded from automatic resubmission. Pending currently combines two operationally different situations: definitely not sent, and possibly sent with no saved outcome. That ambiguity needs resolving before restart can choose work.

17
DA
DanielBennett0739

Would writing 'sent' before the network call solve it? That was my first thought, although then a crash could leave a job marked sent when nothing left the PC.

13
JU
JuliaBrown0935

It changes which ambiguity you encounter; it does not remove the gap between local storage and the external action. A durable dispatch-intent record can identify work requiring reconciliation, but cannot prove the receiver executed it.

20
OM
OmarBell0665

Who can reconcile that uncertainty now? In our lab the person on the morning shift needed a concrete list of affected samples. A red 'pending' box with no attempt details just moved the guesswork to them.

5
JU
JuliaBrown0935

The recovery path needs an owner and evidence for the specific attempt. A new status name helps only if startup honours it and the operator has a defined way to investigate it.

14
DA
DanielBennett0739

Currently nobody owns it. The file has the sample identifier and a job counter, but the counter resets. I've flagged the saved incident as uncertain and asked the application owner to disable automatic replay of that class.

12
JU
JuliaBrown0935

The resetting counter also limits matching against remote records. Ask whether the receiver can expose durable outcomes tied to an identity that survives your service restart. Do not assume it can from the current file format.

16
FI
FionaBell0673

And quarantine the affected sample's result, not just the software row. Otherwise somebody may use it while the programmers debate whether the job ran.

21
JU
JuliaBrown0935

Agreed. The operational record should distinguish an unknown execution outcome from an accepted inspection result. The quality owner needs to define how that sample is handled while evidence is incomplete.

8
RA
RaviArcher0389

Please retain the original attempt when it's reconciled, with the evidence and decision attached, because deleting the confusing row gives the next person a very tidy lie.

8
DA
DanielBennett0739

The application owner has paused automatic restart dispatch for this workflow. We're drafting separate never-sent, dispatch-uncertain and completed states. Quality is deciding the sample disposition; I'm not treating the missing result as a failure or pass.

0
OM
OmarBell0665

Can the next shift see why dispatch is paused? Even a clear recovery list helps. Otherwise someone will restart the service again because the screen looks like yesterday's ordinary queue delay.

19
DA
DanielBennett0739

We've added the incident to the shift handover and named the application owner as the recovery contact. The screen change is still only a proposal; I should not imply the new states are implemented.

17
JU
JuliaBrown0935

For validation, use a controlled test harness to exercise crashes on both sides of dispatch and outcome persistence. The expected result for an ambiguous case should be blocked reconciliation, not an automatic second submission.

8
FI
FionaBell0673

Also test the recovery decision itself. A button called 'resolve' that silently queues another run would put the same problem in nicer clothes.

18
JU
JuliaBrown0935

Yes. Any authorised repeat must be explicit, linked to the prior uncertain attempt, and consistent with the task's recovery procedure. Closing an incident and submitting new work are different actions.

16
RA
RaviArcher0389

And hand over the state definitions with those tests, so the next maintainer knows why an old pending file mustn't be casually swept back into the queue.

0

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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