PrefectHQ / graphs

Large scale graphs designed for Prefect
Apache License 2.0
8 stars 1 forks source link

Add support for nested task run graphs #525

Closed pleek91 closed 3 weeks ago

pleek91 commented 3 weeks ago

Description

Adds the ability for graphs to include nested_task_run_graphs?: Map<string, RunGraphData>. This map is keyed by task run id. So when rendering a task run node it checks to see if there is a nested graph associated with that task run and if so renders it similar to how a nested flow run is rendered. Allowing you to expand the task run to see its nested runs.

This change is backwards compatible, its up to the implementation to pass the nested task run graphs AND to make sure and nested task runs are not present in the root graph data (otherwise they'll be rendered as normal).

A flow run with nested tasks rendered without using nested task run graphs

image

That same flow run rendered with nested task run graphs (with some tasks manually expanded to show the nesting)

image
netlify[bot] commented 3 weeks ago

Deploy Preview for prefect-graphs ready!

Name Link
Latest commit 189c375599e775945f2dfa5d83832f01013d170b
Latest deploy log https://app.netlify.com/sites/prefect-graphs/deploys/667b2658a46aaa000847f425
Deploy Preview https://deploy-preview-525--prefect-graphs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.