This repository was archived by the owner on Aug 8, 2026. It is now read-only.
windows: how to actually schedule the publish, not just what to copy - #72
Merged
Conversation
The repo shipped run-publish.cmd and push-panel.cmd on 2026-08-04 with a README line saying to chain them behind errorlevel guards after the cotdata producer task, and nothing saying how. cotdata has docs/WINDOWS_SCHEDULING.md; this had no equivalent, which a setup walkthrough hit immediately. Deliberately thin, and defers to cotdata's doc for the schtasks syntax, the Friday release trigger, restart-on-failure and the troubleshooting list. A second copy of a living document drifts from the first and nobody notices until someone diffs them, which this repo has already paid for once (CLAUDE.md, "The copy lost 104 lines"). Four things that were written down nowhere: - Neither crowdmon step gets its own timer. --require-final defers until NDU has pulled the Finals and restart-on-failure retries 6x10min, so a 20:55 prices task can finish an hour later. A publish on a 21:30 timer builds last week's panel and reports success doing it. - The `call` trap. cmd treats a bare .cmd invocation from inside a .cmd as a transfer of control, not a subroutine, so without `call` the wrapper runs run-prices.cmd alone, the other three steps never execute, and the task exits 0. No error, nothing in any log. - Verify from manifest.json rather than Last Run Result, which is not a success signal here (a deferred price run exits non-zero by design). provenance.built_at is the field that catches a dead schedule: COT is weekly, so a stopped job produces no new report week to notice. - Register by repointing the existing prices task, so the restart-on-failure setting already configured covers the whole chain. That re-runs the price fetch on a retry, which is idempotent, so it is correct rather than merely tolerable. Said plainly rather than presented as free. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repo shipped
run-publish.cmdandpush-panel.cmdon 2026-08-04 with a README line saying to chain them behinderrorlevelguards after the cotdata producer task, and nothing saying how. cotdata hasdocs/WINDOWS_SCHEDULING.md; this had no equivalent, which a setup walkthrough hit immediately.Adds
docs/WINDOWS_SCHEDULING.mdand links it from the README's scheduling section.Deliberately thin. It defers to cotdata's doc for the
schtaskssyntax, the Friday release trigger, restart-on-failure and the troubleshooting list. A second copy of a living document drifts from the first and nobody notices until someone diffs them, which this repo has already paid for once (CLAUDE.md, "The copy lost 104 lines and nobody noticed for a day").Four things that were written down nowhere
--require-finaldefers until the Norgate Data Updater has pulled the Finals, and restart-on-failure retries 6x10min, so a 20:55 prices task can finish an hour later. A publish on a 21:30 timer builds last week's panel and reports success doing it.calltrap.cmdtreats a bare.cmdinvocation from inside a.cmdas a transfer of control, not a subroutine, so withoutcallthe wrapper runsrun-prices.cmdalone, the other three steps never execute, and the task exits 0. No error, nothing in any log.manifest.json, not Last Run Result, which is not a success signal here (a deferred price run exits non-zero by design).provenance.built_atis the field that catches a dead schedule: COT is weekly, so a stopped job produces no new report week to notice, and a panel can be current on the week and months old on the clock.It also places the cotdata store push between publish and panel push, so the server never briefly holds a panel derived from data it has not received.
Verification
Docs only, no
src/ortests/change.tests/test_references.pypasses against the worktree, so the§D14citation resolves. The four suite totals inCLAUDE.mdare unmoved: no test was added or removed, and no parametrised guard grew its corpus.🤖 Generated with Claude Code