compute:status

Read managed compute lease status for the current user and --lease_control_token scope. Returns `compute` with `recommended_next_action` (`acquire_new_lease`, `wait_for_release`, `retry_acquire_active_lease`, `wait_for_active_lease`, `use_active_lease` or `release_or_reacquire`), `active_lease_id` and `leases`. Lease rows include ownership flags so you can distinguish user-owned leases from sponsor-visible campaign leases; only rows with `owned_by_current_user` and `connection_allowed_for_current_user` true can be used for connection or reuse. No SSH private key is returned. When checking a grant-backed lease, reuse the same --compute_grant_id passed to compute:acquire.

Reference for flywheel compute:status.

Command Group

Compute & Executions Commands

Summary

Read managed compute lease status for the current user and --lease_control_token scope. Returns compute with recommended_next_action (acquire_new_lease, wait_for_release, retry_acquire_active_lease, wait_for_active_lease, use_active_lease or release_or_reacquire), active_lease_id and leases. Lease rows include ownership flags so you can distinguish user-owned leases from sponsor-visible campaign leases; only rows with owned_by_current_user and connection_allowed_for_current_user true can be used for connection or reuse. No SSH private key is returned. When checking a grant-backed lease, reuse the same --compute_grant_id passed to compute:acquire.

Effect

read-only

Usage

flywheel compute:status <FLAGS>

Aliases

cs

Required flags

FlagValueDefaultChoicesDescription
--lease_control_tokenstringFrom compute.lease_control_token in compute:acquire; scopes the leases you control (not an SSH credential). No matching lease: empty status, no_active_lease from release-all, 403 on connect or single release.

Optional flags

FlagValueDefaultChoicesDescription
--providerstringCompute provider ID, e.g. lambda (see provider in compute:options). Optional filters: omitted means all. Acquire prefixes an unqualified SKU with it; executions and approval requests just store it.
--compute_grant_idstringGrant ID from compute-grants:list or an already_approved compute-grants:request-approval. Acquire requires it; status filters by it. Unknown, inactive, exhausted or bound elsewhere: 403 or 422 approval_required; request approval again.
--limitintegerMost items to return (omitted: command default). No next page: raise limit or narrow filters.
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILESelect a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL.
--outPATHWrite output to a file path, or use - for stdout.
--openOpen browser-bound URLs when supported.
--no-retryDisable transient-error retries.
--retry-maxNMaximum transient-error retry attempts.
--waitBlock on async operations until a terminal state is reached.
--wait-timeoutSECONDS600Seconds to wait for --wait before timing out. Defaults to 600.
--allow-selfAllow mutating the currently active credential.
--timeoutSECONDSSet the per-request timeout budget in seconds.
--idempotency-keyKEYReuse an Idempotency-Key so ambiguous write failures can be retried with the same key.
--forceForce safety-gated operations where supported.
--yesConfirm forced compute:release-all --force. Other runtime commands do not read --yes.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Check the status of a lease by control token.

flywheel compute:status --lease_control_token tok_42

Emit compute status as TSV for scripted monitoring.

flywheel compute:status --lease_control_token=tok_42 --limit=20 --format=tsv

Output

Default format: json.

FieldType
computeobject