Skip to content

cli: vpo run --hold, the resident planner with its work off - #700

Merged
rusholme merged 1 commit into
mainfrom
vpo/held
Dec 5, 2026
Merged

rusholme merged 1 commit into
mainfrom
vpo/held

Conversation

@rusholme

@rusholme rusholme commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Adds one verb, rapidpipe vpo run --hold: the VPO's resident command with its work off.

What it does. Passes a minute apart, each making one connection to the database and one statement that reads no table, admitting no file, submitting no job and printing one summary line of JSON, until SIGTERM or SIGINT. No pass reaching the database for --patience seconds (default 900) exits 75. Without --hold it exits 69: admission is not built.

Why. So the deployment's service, its log and its alarms can stand before the planner does anything (rapid_systems, rapid-vpo.service, a pull request of its own). Nothing here touches a run, a job, the schema or the shipped settings, and rapidpipe loop is unchanged.

Page. Caltech-IPAC/rapid_docs pull request 258 adds the command's row to system/tool.md and gives exit code 69 its one use.

Tests. tests/unit/test_vpo.py: a held pass reaches the database and does no work; a refused pass says so and the command stays; patience exhausted exits 75; the command is resident until told to stop; unheld, it is not built.

🤖 Generated with Claude Code

The VPO's resident command, held: each pass makes one connection to the
database, admits no file, submits no job and prints one summary line, until
SIGTERM or SIGINT. No pass reaching the database for --patience seconds
exits 75. Without --hold the command exits 69: admission is not built. It
lets the deployment's service, log and alarms stand before the planner does
anything (rapid_systems, rapid-vpo.service).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rusholme
rusholme merged commit 680f3e6 into main Dec 5, 2026
5 checks passed
@rusholme
rusholme deleted the vpo/held branch December 5, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant