The retry loop's rescue alert reports the previous attempt's stage, and /system never learns #30
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from the review of #27 (approved; not a blocker).
schedule's catch inpackages/server/src/modules/external-retry.ts:108-123:Two ways it contradicts itself if it ever fires:
clone:— whatever the origin of the escaped error. A throw out ofhost.loadExternalwould be reported as a clone problem.host.failed. Depending on where the throw happened,host.failedeither still holds the stale pre-retry record or (ifclearExternalFailurealready ran) holds nothing at all, while the bell says the module is permanently stopped./systemand the bell disagree.This should be unreachable now that the two
Deno.mkdircalls moved insideprepareExternalModule's try, and keeping the belt-and-braces catch is right. It should just be honest when it fires: record a failure on the host so/systemmatches, and either carry a stage that reflects where the throw came from or leave the stage out of the rescue message rather than assertingclone.Note there is no
ModuleFailureStagethat means "the retry machinery itself broke" (host.ts:121-126), so this needs a small call on the taxonomy — which is why it is a follow-up and not an inline fix.