tctl version-next batch command reference
A "batch" command enables you to affect multiple existing Workflow Executions What is a Workflow Execution? A Temporal Workflow Execution is a durable, scalable, reliable, and reactive function execution. It is the main unit of execution of a Temporal Application.
In tctl version-next you can run the typical Signal Workflow, Terminate Workflow, and Cancel Workflow batch jobs using the tctl workflow signal, tctl workflow terminate, and tctl workflow cancel commands respectively.
The batch command is automatically started when the --query modifier is provided with those commands.
In tctl version-next, the tctl batch commands are used solely to view the status of and terminate the batch jobs.
The What is a List Filter? A List Filter is the SQL-like string that is provided as the parameter to an Advanced Visibility List API.--query modifier supports a List Filter
A successfully started batch job returns a Job ID.
You can use this Job ID in the tctl batch describe command, which describes the progress of a specific batch job.
You can also use the Job ID to terminate the batch job itself. Terminating a batch job does not roll back the operations already performed by the batch job.
tctl batch-v2 commands
- tctl batch describe --job-id
- tctl batch list
- tctl batch terminate --job_id
- tctl workflow signal --query ...
- tctl workflow terminate --query ...
- tctl workflow cancel --query ...
list
The tctl batch list command lists all batch jobs.
tctl batch list <modifiers>
The following modifiers are supported and control the behavior of the command. Always include required modifiers when executing this command.
describe
The tctl batch describe command describes the progress of a batch job.
tctl batch describe --job-id <value> <modifiers>
The following modifiers are supported and control the behavior of the command. Always include required modifiers when executing this command.
terminate
The tctl batch terminate command terminates a batch job.
tctl batch terminate --job-id <id> <modifiers>
The following modifiers are supported and control the behavior of the command. Always include required modifiers when executing this command.