Migration Guide: FlowyML 0.x to 1.0
This guide covers the changes introduced in the orchestration refactor and how to update your existing code.
Key Changes
- Orchestrator Separation:
Pipeline.run()now delegates to anOrchestrator. - Async Remote Execution: Cloud orchestrators now return
SubmissionResultinstead of blocking. - ExecutionStatus Enum: Standardized status strings.
- Lifecycle Hooks: New system for
on_pipeline_start,on_step_end, etc.
Migrating Pipeline Code
1. Pipeline Execution
Old:
New:
The API remains the same for local execution, but under the hood it uses LocalOrchestrator.
2. Remote Execution
Old:
New:
Returns a SubmissionResult object.
3. Status Checking
Old: Raw strings like "RUNNING", "SUCCEEDED" (provider specific).
New:
Use ExecutionStatus enum.
Advanced Features
Retry Policies
You can now configure retries at the orchestrator level:
Scheduling
Schedule pipelines directly:
Observability
Hook into metrics: