Skip to main content

terminate

Creates, updates, deletes, gets or lists a terminate resource.

Overview

Nameterminate
TypeResource
Idcloudflare.workflows.terminate

Fields

The following fields are returned by SELECT queries:

Get status of the job responsible for terminate all instances of a workflow.

NameDatatypeDescription
statusstring (running, not_running)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectworkflow_name, account_idGets the status of a bulk workflow instance termination job.
wor_batch_terminate_workflow_instancesinsertworkflow_name, account_idTerminates multiple workflow instances in a single batch operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
workflow_namestringThe Workflow name.

SELECT examples

Gets the status of a bulk workflow instance termination job.

SELECT
status
FROM cloudflare.workflows.terminate
WHERE workflow_name = '{{ workflow_name }}' -- required
AND account_id = '{{ account_id }}' -- required
;

INSERT examples

Terminates multiple workflow instances in a single batch operation.

INSERT INTO cloudflare.workflows.terminate (
workflow_name,
account_id
)
SELECT
'{{ workflow_name }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
result_info,
success
;