Skip to main content
Stops a running task. Safe to call when nothing is running.

Request

Recommended for API callers: name the session you started.
Or name the computer and the channel:

Response

A task was stopped:
Nothing to stop:
reason is no active session or session already idle or aborting.

Errors

Gotchas

  • Use sessionId. It needs no machine lookup, so it also works on a free account’s computer between claims.
  • With machineId, the default channel is cli. Forgetting channel: "api" reports no active session while your task keeps running.
  • Pending approvals on the aborted task are resolved as denied, so nothing is left waiting.
sessionId and channel on /abort are available from October 1. Today’s staging accepts machineId only and stops the CLI’s conversation.