Skip to main content

What is an Command?

Any action requested by the Workflow durable function.

  • Scheduling an Activity, canceling a child Workflow, or starting a timer are all examples of Commands.
  • A Workflow Task contains an optional list of Commands.
  • A Worker executing a Workflow generates a list of Commands as a result of a Workflow Task. This list is sent to the Temporal service as part of the Workflow Task completion request.
  • Every Command is recorded in the Event History as an Event. For example, the StartTimer command is recorded as a corresponding TimerStarted event.