The following command cloudos bash job --workflow-name ubuntu --command "echo 'a' > txt.txt" --last fails with the following error:
ValueError: No --job-config, --nextflow_profile, --parameter or --example_parameters were specified, please use at least one of these options.
There are two issues here:
- The following code snippet is not correctly capturing the bash jobs (aka
docker), as it always triggers the first if:
|
if ( |
|
nextflow_profile is None and |
|
job_config is None and |
|
len(parameter) == 0 and |
|
len(example_parameters) == 0 |
|
): |
|
raise ValueError('No --job-config, --nextflow_profile, --parameter or ' + |
|
'--example_parameters were specified,' + |
|
' please use at least one of these options.') |
|
if workflow_type == 'wdl' and job_config is None and len(parameter) == 0: |
|
raise ValueError('No --job-config or --parameter were provided. At least one of ' + |
|
'these are required for WDL workflows.') |
|
if workflow_type == 'docker' and len(parameter) == 0: |
|
raise ValueError('No --parameter were provided. At least one of ' + |
|
'these are required for bash workflows.') |
- Bash jobs can run without params in the platform, so the following check is not necessary:
|
if workflow_type == 'docker' and len(parameter) == 0: |
|
raise ValueError('No --parameter were provided. At least one of ' + |
|
'these are required for bash workflows.') |
The following command
cloudos bash job --workflow-name ubuntu --command "echo 'a' > txt.txt" --lastfails with the following error:There are two issues here:
docker), as it always triggers the firstif:cloudos-cli/cloudos_cli/jobs/job.py
Lines 307 to 321 in e092582
cloudos-cli/cloudos_cli/jobs/job.py
Lines 319 to 321 in e092582