Skip to main content

Stop

Stops specified Workflow execution.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const StopExecutionRequest =
cloudApi.serverless.workflows_execution_service.StopExecutionRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.ExecutionServiceClient);

const result = await client.stop(
StopExecutionRequest.fromPartial({
executionId: "executionId",
})
);
console.log(result);
})();

StopExecutionRequest

executionId : string

ID of the Workflow execution.

StopExecutionResponse

executionId : string

ID of the Workflow execution.