Basic Workflow
Define a workflow using thehy.workflow() method:
Parallel Execution
Run multiple tasks in parallel using arrays:Complex DAG Patterns
Build complex workflows with branching paths:Workflow Arguments
Pass arguments to workflows using Zod schemas:Access Workflow Context
Tasks within workflows can access workflow metadata:Task Configuration in Workflows
Apply task-specific configuration within workflows:Task Copies
Use the same task multiple times in a workflow with.copy():
Workflow Configuration
Configure workflow behavior:Sending Workflows
Send workflows for execution:Best Practices
-
Define Clear Dependencies
-
Use Type-Safe Arguments
-
Share Data Between Tasks
-
Handle Workflow Errors
Next Steps
Tasks
Learn about task configuration
Queues
Route workflows to worker pools
Key-Value Store
Share data between workflow tasks