syn control
Control running executions
Control running executions
syn control cancel
Cancel a running execution
syn control cancel <execution-id> [options]Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
execution-id | text | Yes | Execution ID to cancel |
Options:
| Flag | Type | Default | Description |
|---|---|---|---|
--reason, -r | text | --- | Reason for cancelling |
--force, -f | boolean | false | Skip confirmation prompt |
Cancelling a started execution is asynchronous: the signal is queued and the executor acts on it shortly after. Until then the response's state, and any re-read, still shows the state before the cancel (usually running), and the command says the cancel is queued. Run syn execution show <execution-id> until it reads cancelled. Cancelling a start that is still queued withdraws it at once and it never runs: the response reads cancelled straight away, but syn execution show can still read queued for a moment until the withdrawal reaches the read model, so re-read it the same way.
syn control inject
Not supported: the API refuses it. Cancel the execution and start again with a corrected task
syn control inject <execution-id> [options]Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
execution-id | text | Yes | Execution ID |
Options:
| Flag | Type | Default | Description |
|---|---|---|---|
--message, -m | text | --- | Message to inject |
syn control status
Get current execution control state
syn control status <execution-id>Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
execution-id | text | Yes | Execution ID to check |
syn control stop
Forcefully stop a running execution via SIGINT
syn control stop <execution-id> [options]Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
execution-id | text | Yes | Execution ID to stop |
Options:
| Flag | Type | Default | Description |
|---|---|---|---|
--reason, -r | text | --- | Reason for stopping |
--force, -f | boolean | false | Skip confirmation prompt |
Cancelling a started execution is asynchronous: the signal is queued and the executor acts on it shortly after. Until then the response's state, and any re-read, still shows the state before the cancel (usually running), and the command says the cancel is queued. Run syn execution show <execution-id> until it reads cancelled. Cancelling a start that is still queued withdraws it at once and it never runs: the response reads cancelled straight away, but syn execution show can still read queued for a moment until the withdrawal reaches the read model, so re-read it the same way.