Skip to main content

tctl workflow stack

The tctl workflow stack command queries Workflow Execution with __stack_trace as the query type.

This command can be used to locate errors and blocks in a Workflow Definition.

tctl workflow stack <modifiers>

The following modifiers control the behavior of the command.

--workflow_id

This is a required modifier.

Specify a Workflow Id.

Aliases: --wid, -w

Example

tctl workflow stack --workflow_id <id>

--run_id

Specify a Run Id.

Aliases: --rid, -r

Example

tctl workflow stack --run_id <id>

--input

Pass input for the query. Input must be in JSON format. For multiple JSON objects, concatenate them and use spaces as separators.

Alias: -i

Example

tctl workflow stack --input <json>

--input_file

Pass input for the query from a JSON file. For multiple JSON objects, concatenate them and use spaces or newline characters as separators. Input from the command line overwrites input from the file.

Alias: --if

Example

tctl workflow stack --input_file <filename>

--query_reject_condition

Reject queries based on Workflow state. Valid values are not_open and not_completed_cleanly.

Alias: --qrc

Example

tctl workflow stack --query_reject_condition <value>