Skip to content

feat(cli): Add --keep-minutes flag to the cli - #174

Open
fnwoke-lightning wants to merge 5 commits into
fnwoke/machine-reuse-1from
fnwoke/machine-reuse-2
Open

fnwoke-lightning wants to merge 5 commits into
fnwoke/machine-reuse-1from
fnwoke/machine-reuse-2

Conversation

@fnwoke-lightning

@fnwoke-lightning fnwoke-lightning commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Expose --keep-minutes on lightning job run and lightning mmt run, forwarding it to the SDK job-create APIs.
  • Omit the flag or pass 0 to release the machine when the job stops; a value greater than 0 keeps it reserved for that many minutes.

Test plan

  • lightning job run --help shows --keep-minutes
  • lightning job run ... --keep-minutes 30 passes 30 through to Job.run
  • lightning mmt run ... --keep-minutes 15 passes 15 through to MMT.run
  • Negative values are rejected by the CLI (IntRange(min=0))

@justusschock

Copy link
Copy Markdown
Member

is there any way to have a shorter argument? That's quite long to type

@fnwoke-lightning fnwoke-lightning changed the title feat(cli): Add --reserve-machines-timeout-minutes flag to the cli feat(cli): Add --keep-minutes flag to the cli Sep 23, 2026
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.

4 participants