My current cwltool version is 3.1.20211107152837. Currently I have a conditional workflow. When I tried to run using cwltool in command prompt, I am able to get the output successfully. But when I tried to run it in cwl-airflow, I am not able to. After checking the log file, this is what is shown:
Source 'out2a' of
type ["null",
"File"] may be
incompatible
cwl_tmp_folder/***_11-conditional-workflow-v2_manual__2021-12-02T09_46_06.468109_00_00_ul3lyxy9/step2a/step2a_step_workflow.cwl:29:13: with sink
'step2a_out2a' of
type "File"
cwl_tmp_folder/***_11-conditional-workflow-v2_manual__2021-12-02T09_46_06.468109_00_00_ul3lyxy9/step2a/step2a_step_workflow.cwl:27:9: Source is from
conditional step
and may produce
`null`
Below is how my conditional workflow file looks like:
I have already specify that out2 may accept "File" and "null" from the outputSource though. Meanwhile I will explore whether there is anything wrong with my cwl syntax despite having ran it successfully with "cwltool". DO you know why I am encountering this when ran in cwl-airflow?
Hi Michael,
My current cwltool version is 3.1.20211107152837. Currently I have a conditional workflow. When I tried to run using cwltool in command prompt, I am able to get the output successfully. But when I tried to run it in cwl-airflow, I am not able to. After checking the log file, this is what is shown:
Below is how my conditional workflow file looks like:
[Edit: Further supplement with the other CommandLineTool]
Step1: 11-foo-v2.cwl
Step2a: 11-step2a-v2.cwl
Step2b: 11-step2b-v2.cwl
I have already specify that out2 may accept "File" and "null" from the outputSource though. Meanwhile I will explore whether there is anything wrong with my cwl syntax despite having ran it successfully with "cwltool". DO you know why I am encountering this when ran in cwl-airflow?