m3resp.workflows.validate_workflow#

m3resp.workflows.validate_workflow(spec, *, available=None, readiness=False)[source]#

Check workflow structure and optionally its readiness on this machine.

Parameters:
  • spec (WorkflowSpec) – Parsed workflow to inspect.

  • available (set[str] | None) – Extra context keys supplied by the caller before execution.

  • readiness (bool) – Also check optional package availability and file paths.

Returns:

Structural errors and warnings, plus readiness

diagnostics when requested. Missing packages give warnings and missing input files give errors in the readiness section. is_valid reflects structural errors only.

Return type:

ValidationReport