approval-sessions:expire
Mark an approval session expired. Grants, leases and campaign budgets are untouched: machines keep running and keep billing until you release them with compute:release. Returns `approval_session` (now expired), `reason` (echoed back, not stored) and two lists, `expired_compute_grant_ids` and `released_lease_ids`, which are always empty (kept so older callers still find the fields).
Reference for flywheel approval-sessions:expire.
Command Group
Approvals & Budgets Commands
Summary
Mark an approval session expired. Grants, leases and campaign budgets are untouched: machines keep running and keep billing until you release them with compute:release. Returns approval_session (now expired), reason (echoed back, not stored) and two lists, expired_compute_grant_ids and released_lease_ids, which are always empty (kept so older callers still find the fields).
Effect
DESTRUCTIVE: deletes, overwrites or revokes something
Usage
flywheel approval-sessions:expire <FLAGS>Required flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--session_id | string | approval_session.session_id from approval-sessions:heartbeat or approval-sessions:list. Unknown or not yours: error. |
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--reason | string | Free text echoed back as reason; it is not stored and changes nothing. Omitted: approval_session_expired. | ||
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Select a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Confirm forced compute:release-all --force. Other runtime commands do not read --yes. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Expire.
flywheel approval-sessions:expire --session_id s1Output
Default format: json.
| Field | Type |
|---|---|
approval_session | object |
expired_compute_grant_ids | array<string> |
released_lease_ids | array<string> |
reason | string |
executions:terminate
Close one stored execution record: sets its status to --terminal_status (`completed`, `failed` or `canceled`; omitted: `canceled`), merges --metadata into the record's metadata, and bumps the node's revision. It records status only: it stops no process or compute (release machines with `compute:release`). Needs the node's owner or an admin. Only a `running` record can be closed: one that is already `completed`, `failed` or `canceled` is refused with 409 naming its status, and stays as it is.
approval-sessions:heartbeat
Extend an existing approval session to --ttl_seconds from now (at least 60). Without --session_id, open a new session first, then refresh it. An unknown, someone else's or expired session fails. Returns `approval_session` with `session_id`, `status`, `last_heartbeat_at`, `expires_at`, `user_id`, `created_at` and `updated_at`, plus `opened_session_id` when opened. A call sooner than --min_touch_interval_seconds after the last one returns the session unchanged.