run_tasks
run_tasks
evo.compute.tasks.common.runner.run_tasks
run_tasks(
context: IContext, parameters: list[TParams], *, fb: IFeedback = NoFeedback, preview: bool = False
) -> list[TResult]
Run multiple tasks concurrently, dispatching based on parameter types.
This function looks up the appropriate runner for each parameter based on its type, allowing different task types to be run together.
Args: context: The context providing connector and org_id. parameters: List of parameter objects (can be mixed types). fb: Feedback interface for progress updates. preview: If True, sets the API-Preview: opt-in header on requests. Required for tasks that are still in preview. Defaults to False.
Returns: List of results in the same order as the input parameters.
Raises: TypeError: If any parameter type doesn't have a registered runner.
Example: >>> results = await run_tasks(manager, [ ... KrigingParameters(...), ... SimulationParameters(...), # future task type ... ], preview=True)