syn control

Control running executions

Control running executions

syn control cancel

Cancel a running execution

syn control cancel <execution-id> [options]

Arguments:

NameTypeRequiredDescription
execution-idtextYesExecution ID to cancel

Options:

FlagTypeDefaultDescription
--reason, -rtext---Reason for cancelling
--force, -fbooleanfalseSkip 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:

NameTypeRequiredDescription
execution-idtextYesExecution ID

Options:

FlagTypeDefaultDescription
--message, -mtext---Message to inject

syn control status

Get current execution control state

syn control status <execution-id>

Arguments:

NameTypeRequiredDescription
execution-idtextYesExecution ID to check

syn control stop

Forcefully stop a running execution via SIGINT

syn control stop <execution-id> [options]

Arguments:

NameTypeRequiredDescription
execution-idtextYesExecution ID to stop

Options:

FlagTypeDefaultDescription
--reason, -rtext---Reason for stopping
--force, -fbooleanfalseSkip 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.


On this page