Is it possible to construct a DAG from a given wor...
# flyte-console
r
Is it possible to construct a DAG from a given workflow, without using the UI? In Snakemake it was very handy to able to create DAG schematics for a given workflow given a specific input. If not, would be super cool to use something like mermaid to construct the DAGs so that they could be injected into docs!
1
a
yes this actually exists in flytectl today! you can output a graphviz dot file rendering of a workflow using the command line like so
Copy code
flytectl get workflow -p flytesnacks -d development <http://aa.wine_study.wf|aa.wine_study.wf> --version wine_video_6 -o dot
or to render in your browser:
Copy code
flytectl get workflow -p flytesnacks -d development <http://aa.wine_study.wf|aa.wine_study.wf> --version wine_video_6 -o doturl
🔥 2
r
sick. Thank you Katrina!
👍 1
@acceptable-policeman-57188 ++
a
cc @early-rain-275 @billowy-sundown-31926 is there a way we can better call this out in our docs? right now I see "Visualize the graph for a workflow within project and domain in dot format:" https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_get_workflow.html#synopsis but this isn't great if you're searching for something more generic
b
Will look into it @acceptable-policeman-57188
1
🙌 1
e
Sure Katrina will take a look into it.