wai-quantum-service: a job the service was running when it stopped runs once more #613
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-service-rerun"
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?
A job that was running when the job service stopped came back
interrupted, with its request kept, and nothing ran it again unless its client sent it again. The engine is deterministic, so the same request runs to the same result. The service now runs such a job once more itself.It is one commit on main, which now has the idempotency key (#607, which replaced #596). It was written on top of #596's commit and replayed onto main after #607 and #608 merged; the patch is unchanged.
What changes
wai-quantum-service
interruptionslist each time the service stopped while it ran.interruptedwith the reason, and is not run a third time (RERUNS= 1). A job that stops the service whenever it runs therefore cannot run for ever.interruptedfrees its key, as before.GET /v1'srestoredcounts the jobs run again (rerun), and so does the start-up log.interruptions.get_quantum_job's description says what a restart does.wai-quantum:
wai.quantum.job/1listsinterruptedamong its statuses. The service has returned that status since its jobs were first kept across restarts, but the schema did not list it. The schema also gains the optionalinterruptions. Both are minor changes: one new value of a listed member and one optional member.The tool snapshot and the agent docs are regenerated.
Tests
tests/restart.rs):restoredcounts each start.wai.quantum.job/1.Checked
On the build host, on this commit as replayed onto main (
e00d956f2):-D warnings;check_schemas.pyover every schema file, both tool lists and a release build's answers.Before the replay, on the same patch: the command line's clippy, with and without default features. The public-name check is clean, and so are this description and the commit message.
🤖 Generated with Claude Code