DCode

Covers Engine 2.0.0

task_sequence

Define a sequential CAESAR task in DCode.

Syntax

task_sequence <name>:

Available in

  • File scope

Lifecycle

Activation creates the task; each run executes the sequence in order while publishing its current source line.

Persistence

Values stored in state remain available throughout sequence execution while the task is loaded.

Reload behavior

DARTWIC tracks changes to the block and its template dependencies when loading the task.

Runtime sections

  • start
  • sequence body
  • missed
  • end

Generated channels

  • <name>_running
  • <name>_target_frequency
  • <name>_actual_frequency
  • <name>_hold
  • <name>_current_line
  • <name>_failed_cycles

Example

task_sequence task_name:
    sleep 1.0