const executions = await client.workflows.executions
.list({
filter: {
workflowFilters: [{ externalId: 'my-workflow', version: '1' }],
status: ['FAILED'],
},
})
.autoPagingToArray({ limit: 100 });
Optionalquery: WorkflowExecutionFilterQueryRetrieve workflow execution details
Returns the execution with its workflow definition, input and executed tasks.
const execution = await client.workflows.executions.retrieve('execution-id');
const [session] = await client.sessions.create([{ tokenExchange: true }]);
const execution = await client.workflows.executions.retry('execution-id', {
authentication: { nonce: session.nonce },
});
const [session] = await client.sessions.create([{ tokenExchange: true }]);
const execution = await client.workflows.executions.run('my-workflow', '1', {
authentication: { nonce: session.nonce },
input: { myKey: 'myValue' },
});
Cancel a workflow execution