hydromodpy.workflow.parallel#
Sweep orchestration and worker-pool helpers.
Hosts three reusable building blocks:
expand_parameters()/run_sweep(): the original sweep API consumed byproject.sweep.SequentialExecutorandThreadPoolCohortExecutor: cohort executors used byhydromodpy.workflow.runner.Pipelinewhen a Kahn DAG sort returns multi-step cohorts.execute_cohorts(): thin helper that walks a list of cohorts and dispatches each to the executor of choice.
Threads are used over processes because every workflow step mutates a
live WorkflowContext whose components (zarr stores, DuckDB
connections) are not pickle-safe.
Functions
|
Walk Kahn cohorts and dispatch every item through |
|
Return the list of {param: value} dicts that feed one run each. |
|
Execute one run per parameter point. |
Classes
|
Backend that runs every item of one Kahn cohort. |
|
In-process sequential executor for cohort items. |
|
Minimal project protocol needed by sweep orchestration. |
|
Minimal run view needed by sweep orchestration. |
|
Cohort executor backed by a |