Open motorny opened 3 years ago
Hi, did you find a way to troubleshoot this?
@RGBEN: Sorry about long delay. Can you please upload a full metadata.json
and also Croo output definition JSON for your WDL (if it's not an ENCODE pipeline)?
@leepc12 and Croo developers, here is a small example that i have (not the actual use case) that will reproduce this issue.
If the value of the output and the input are the same, croo will think that there is a cyclic link in the DAG.
As @motorny suggested. I have confirmed adding n1.task_name != n2.task_name
will fix the issue but am not 100% sure if this will break anything else.
here is a the simple wdl and meta.json for so you could reproduce the issue.
happy to put in a PR if that is welcomed! thanks!
Dear croo package developers,
Please consider the following WDL workflow:
In practice, the task does a log more complex work with paths and writes them to the JSON. That JSON is then read into the WDL variables and handled by scatter.
This workflow produced the following calls metadata (truncated):
Afterwards, I try to apply croo package for copying results
croo metadata-out.json --out-def-json out_def.json --out-dir ./
. Out definiton could be even an empty JSON. However, the execution fails with an errorCould you please have a look into int?
P.S. This was kind of urgent for me and I looked into the code. It seems to me that an additional check here that task names are different
and n1.task_name != n2.task_name
does the job. I have not fully tested it, just an idea.