-
Notifications
You must be signed in to change notification settings - Fork 15
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
workflow-controller should allow exporting the dag. #33
Comments
@chirag04 mind explain a little bit more this issue? Do we need to export the DAG (feasible with an external tool) I'm not sure I understand everything about "statically analysis a DB query"... But I'm really not a DB guy. :) |
This could very well be exposed as an external tool but i believe we already have this tool in our code here. @sdminonne imagine steps like these defined in the workflow spec:
if should be possible to query what the DAG will look like even before running the workflow. in this case it would be something like:
I think we already compute that graph, just that we should expose that computation as an api / util. example output could be something like a json
where each node stores the edges it has to other nodes. This can be used to display the DAG on UI etc. |
OK. Thanks. But I don't think |
Obviously the pod I'm talking would use the same code used by |
@chirag04 also it can be done in the future |
yeah but if they already have something we may expose something... Or @chirag04 may start a small project to do this. |
why not? i would imagine we already have the code for that here. we could def use that for |
'cause I do want all the threads and CPU horse-power for controller threadiness. Exposing an API like that it's a simple task "but" with a REST endpoint that I would keep out of the controller. |
sure. didn't mean to say we have to have a REST endpoint for this. could be a simple stand-alone utility/script outside workflow-controller as well. I just thought we already have that code here, it would be cool to make it a reusable for static analysis. that said, i haven't looked at the codebase yet. i will check and see if we can make it a simple script here or outside workflow-controller. |
@chirag04 to expose what I called a graphviz-like representation you just need a simple that does something like $ kubectl get workflows -o json > workflows.json That is going to give you a json file that you can transform with the tool you like ( |
Keep this issue open to track this discussion which is interesting for various topics. |
eg: given a workflow with dependent steps, workflow-controller should allow statically querying the execution-plan / dag. This is much more like how you can statically analyses a DB query.
thoughts?
The text was updated successfully, but these errors were encountered: