capabilities.work

Query and Cancel a Running

A 4-step recipe with Civitai. We can help you get access.

Recipe · 4 steps

Query and Cancel a Running

with Civitai · Artificial Intelligence Management

Find a processing workflow, cancel it, and confirm the canceled state.

  1. Query the consumer's workflows filtered by status and capture the first workflow id.
  2. Inspect the first returned workflow to confirm its current status before canceling.
  3. Update the workflow, setting its status to canceled.
  4. Re-read the workflow to confirm it reports a canceled status.
What you'll need to have ready
  • apiKey: Civitai personal API token used as a Bearer credential.
  • status: Status filter for the query (e.g. processing, preparing).
  • take: Maximum number of workflows to return.
For your developer

Arazzo workflow civitai:workflow-query-cancel, 4 operations: queryWorkflows → getWorkflow → updateWorkflow → getWorkflow. Specs on APIs.io.