Skip to main content

Task Configuration

This page provides comprehensive documentation for task configuration parameters, including task types, conditional execution, task chaining, and workflow control.

Core Task Parameters

Task Type Configuration

task_type

  • Type: str
  • Default: "normal"
  • Options: "normal", "decision", "loop", "parallel", "sequential"
  • Description: Defines the execution behavior and flow control of the task
The task_type parameter determines how a task is executed within the workflow and how it interacts with other tasks.

Task Type Details

Normal Tasks

Standard tasks that execute sequentially with defined inputs and outputs.

Decision Tasks

Tasks that evaluate conditions and determine workflow paths.

Loop Tasks

Tasks that repeat based on conditions or iterations.

Workflow Control Parameters

condition

  • Type: Dict[str, Any]
  • Default: None
  • Description: Defines conditions for task execution or branching
Complex condition structures for advanced workflow control:

next_tasks

  • Type: Union[List[str], Dict[str, str]]
  • Default: []
  • Description: Defines subsequent tasks in the workflow
Controls task sequencing and branching:

is_start

  • Type: bool
  • Default: False
  • Description: Marks the task as a workflow entry point
Identifies tasks that can initiate workflow execution:

Advanced Task Configuration

Complex Workflow Patterns

Parallel Execution Pattern

Sequential Pipeline Pattern

Task Dependencies and Context

Error Handling and Recovery

Task State Management

Loop State Configuration

Configuration Best Practices

Task Naming Conventions

Performance Optimization

Environment Variables

Task behavior can be configured via environment variables:

Validation Rules

Parameter Constraints

Condition Operators

See Also