-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Mermaid DAG with nested workflows #5843
Comments
Good catch. From the Mermaid docs it looks like subgraphs can have a separate id and title:
|
Thanks. |
I was finally able to create a MWE for the second issue in #5855 |
Signed-off-by: kdesnos <[email protected]>
Signed-off-by: kdesnos <[email protected]>
Bug report
Expected behavior and actual behavior
When using nested hierarchical workflow with more than 2 levels of hierarchy, in case where a workflow is instantiated several times below the first level of hierarchy, without any aliasing of the workflow name, the exported DAG with mermaid does not reflect the nextflow dag.
Steps to reproduce the problem
Consider the following MWE, where the
sub_sub
workflow is instantiated twice by two differentsub_x
workflows in the top level workflow.Program output
The exported mermaid graph has the following code:
Which seems fine on paper. Unfortunately, mermaid can have a unique subgraph with name
sub_sub
, and as a result, when displaying the graph, two instances ofa
are displayed withinsub_1::sub_sub
, while the subgraph ofsub_2
remains empty.Environment
The text was updated successfully, but these errors were encountered: