transactions:cancel
rai transactions:cancel [OPTIONS]Issues a cancellation request for the transaction with the specified ID.
Once the transaction is cancelled, its STATE is reported as CANCELED when running transactions:get.
Requires the eng_user application role.
Options
Section titled “Options”| Option | Type | Description |
|---|---|---|
--id | Text | The ID of the transaction to cancel. If missing, you are prompted to enter the ID interactively. |
--all-users | Flag | Cancel a transaction from any user. If missing, only transactions by the current user may be cancelled. |
Example
Section titled “Example”Use the transactions:cancel command to cancel an engine transaction:
$ rai transactions:cancel --id 01b439b8-0002-6941-0051-c007049869fa
---------------------------------------------------
▰▰▰▰ Transaction cancelled
---------------------------------------------------By default, only transactions created by the current user can be cancelled.
If you want to cancel a transaction created by another user, use the --all-users flag.
If you do not provide the --id option, you are prompted to select the transaction interactively:
$ rai transactions:cancel
---------------------------------------------------
▰▰▰▰ Transactions fetched
ID Schema State Created Duration ──────────────────────────────────────────
? Select a transaction to cancel:┌──────────────────────────────────────────────────────────────────────────────────────────┐│❯ 1/1 ││❯ 01b439b8-0002-6941-0051-c007049869fa │└──────────────────────────────────────────────────────────────────────────────────────────┘
▰▰▰▰ Transaction cancelled
---------------------------------------------------Use the up and down arrow keys to navigate the list of transactions, and press Enter to select a transaction to cancel.
You can search for a transaction by typing part of its ID in the prompt.
See Compute Resources for more information on RAI engines and engine management.