kosa8 cloud sandbox heartbeat
Extend the leases of a run's (or the labelled, or the named) sandboxes
Usage#
kosa8 cloud sandbox heartbeat [ID...] [--run RUN | --label key=value]
A leased sandbox (create --lease, fork --lease) is deleted when its lease runs out. Each heartbeat moves every matching sandbox's lease forward by its own lease again (or by --extend). A lease that has already lapsed is not brought back. Run it from the trainer's loop, more often than the lease.
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
--extend | duration | extend by this much instead of each sandbox's own lease (1m to 24h) | 0s |
-l, --label | stringArray | the sandboxes with this label, key=value (repeatable; all must match) | [] |
--run | string | the sandboxes labelled kosa8.run=RUN | — |
Example#
kosa8 cloud sandbox heartbeat --run rl-grpo-7 kosa8 cloud sandbox heartbeat --label team=ml --extend 30m kosa8 cloud sandbox heartbeat sbx_a sbx_b