Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Serverless Integrations
    • All guides
        • Starting a workflow
        • Stopping a workflow execution
        • Forcing a workflow to stop
    • Viewing operations with service resources
  • Pricing policy
  • Terraform reference
  • Release notes
  1. Step-by-step guides
  2. Workflows
  3. Managing a workflow run
  4. Forcing a workflow to stop

Forcing a workflow to stop

Written by
Yandex Cloud
Updated at May 5, 2025

If you force stop a workflow, this will interrupt the current active step. To stop a workflow after the current active step is complete, follow this guide.

CLI
API

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. See the description of the CLI command to force stop a workflow:

    yc serverless workflow execution terminate --help
    
  2. Specify a workflow ID to get a list of workflow executions:

    yc serverless workflow execution list --workflow-id <workflow_ID>
    

    Result:

    executions:
      - id: dfq...e78
        workflow_id: dfqud9cbc4k5********
        status: FINISHED
        started_at: "2025-03-10T15:54:44.304781814Z"
        duration: 1.070697344s
      ...
      - id: dfq...4d5
        workflow_id: dfqud9cbc4k5********
        status: FINISHED
        started_at: "2025-03-10T15:05:19.982768956Z"
        duration: 0.971907165s
    
  3. Force a workflow to stop:

    yc serverless workflow execution terminate <workflow_execution_ID>
    

    Result:

    execution_id: dfqmeu8ci1ae2tvocsbv-429e9f6f-b506-4c5a-84b2-9abb********
    

To force stop a workflow, use the terminate REST API method for the Execution resource or the ExecutionService/Terminate gRPC API call.

Was the article helpful?

Previous
Stopping a workflow execution
Next
Getting a list of buses
© 2025 Direct Cursus Technology L.L.C.