Skip to content

CLI: stay alive and auto-resume paused missions (--durable + --webhook) #296

Description

@mcclowes

Follow-up to #197 / PR #295.

The library now wires pause resume end to end (executeWithResume, PauseOrchestrator), but the CLI still exits when a run pauses and prints a --resume hint. Two gaps to close for the CLI story:

  1. No durable log from the CLI. Nothing in cli.ts creates an executionLog, and replaying past a pause is log-based — so even --resume <execId> on a pause-suspended run re-executes from scratch and re-pauses. A --durable [dir] flag (default .reqon-data/log) creating a FileExecutionLog would make --resume actually work for pauses.

  2. No stay-alive mode. With --webhook --durable, a paused run should keep the process alive and go through executeWithResume (or a PauseOrchestrator) so an inbound webhook or the deadline resumes it in-process — matching what the docs describe for the library.

Also worth considering: the scheduler/daemon mode could start a long-lived PauseOrchestrator over the shared log so paused scheduled missions resume across runs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions