How alpha-unito/streamflow works
StreamFlow is a container-native workflow management system for running concurrent, communicating tasks across multi-container, cloud, and HPC environments. The principal workflow is to invoke the CLI with a configuration, parse and translate a CWL workflow, execute its steps using scheduling, deployment, and data-transfer services, then persist results and provenance. Its context assembles pluggable runtime managers; SQLite, recovery, and provenance support durable and restartable runs. The README documents broad CWL compatibility and Kubernetes/Helm deployment. Some subsystem links below rely on SOURCE INDEX references or README statements rather than inspected implementations.
Main entry points: streamflow/main.py CLI orchestration · step.py Step execution · context.py Runtime context · cwl/main.py CWL entry
Components 19
Entry and configuration
- CLI orchestration
streamflow/main.py - Config validation
streamflow/config/validator.py - Plugin parser
streamflow/parser.py
CWL workflow model
- CWL entry
streamflow/cwl/main.py - CWL translation
streamflow/cwl/translator.py - CWL step handling
streamflow/cwl/step.py
Workflow runtime
- Workflow executor
streamflow/workflow/executor.py - Step execution
streamflow/workflow/step.py - Workflow tokens
streamflow/workflow/token.py - Runtime context
streamflow/core/context.py
Execution infrastructure
- Task scheduling
streamflow/scheduling/scheduler.py - Deployment management
streamflow/deployment/manager.py - Infrastructure connectors
streamflow/deployment/connector - Data management
streamflow/data/manager.py
State and recovery
- SQLite persistence
streamflow/persistence/sqlite.py - Failure recovery
streamflow/recovery/failure_manager.py - Run provenance
streamflow/provenance/run_crate.py
Other components
- Workflow operator
- Workflow results
Connections 20
- Workflow operator → CLI orchestration: runs configuration
README.md - CLI orchestration → Config validation: validates config
streamflow/main.py - CLI orchestration → Plugin parser: loads plugins
streamflow/main.py - CLI orchestration → CWL entry: starts CWL
streamflow/main.py - CWL entry → CWL translation: translates workflow
streamflow/cwl/main.py - CWL translation → CWL step handling: builds steps
streamflow/cwl/translator.py - CWL entry → Workflow executor: creates executor
streamflow/cwl/main.py - Workflow executor → Step execution: runs steps
- Step execution → Workflow tokens: passes tokens
streamflow/workflow/step.py - Runtime context → Task scheduling: constructs manager
streamflow/core/context.py - Runtime context → Deployment management: constructs manager
streamflow/core/context.py - Runtime context → Data management: constructs manager
streamflow/core/context.py - Step execution → Task scheduling: requests scheduling
streamflow/workflow/step.py - Task scheduling → Deployment management: selects targets
streamflow/scheduling/scheduler.py - Deployment management → Infrastructure connectors: uses connectors
streamflow/deployment/manager.py - Step execution → Data management: uses data services
streamflow/workflow/step.py - Step execution → SQLite persistence: persists workflow state
streamflow/workflow/step.py - Step execution → Failure recovery: supports recovery
streamflow/workflow/step.py - CLI orchestration → Run provenance: records provenance
streamflow/main.py - CLI orchestration → Workflow results: produces outputs
README.md