cloudos_cli.utils.nextflow_version¶
Nextflow version resolution and validation utilities.
Functions
|
Resolve and validate the Nextflow version for a job submission. |
- cloudos_cli.utils.nextflow_version.resolve_nextflow_version(nextflow_version, execution_platform, is_module, workflow_name=None, verbose=False)[source]¶
Resolve and validate the Nextflow version for a job submission.
This function handles: - Dynamic defaults based on execution platform and workflow type - ‘latest’ version resolution - Platform workflow version forcing - Platform-specific version validation with appropriate warnings/errors
- Parameters:
nextflow_version (str or None) – The requested Nextflow version, or None for default
execution_platform (str) – The execution platform (‘aws’, ‘azure’, or ‘hpc’)
is_module (bool) – Whether the workflow is a Platform workflow (module)
workflow_name (str, optional) – The workflow name for informative messages
verbose (bool, optional) – Whether to print verbose messages
- Returns:
The resolved and validated Nextflow version
- Return type:
str
- Raises:
click.BadParameter – If an unsupported version is specified for AWS or HPC platforms