Jay
05/15/2024, 4:29 PMElijah Ben Izzy
05/15/2024, 4:30 PMJay
05/15/2024, 4:36 PMElijah Ben Izzy
05/15/2024, 4:38 PMJay
05/15/2024, 4:39 PMElijah Ben Izzy
05/15/2024, 4:39 PMElijah Ben Izzy
05/15/2024, 4:42 PMvars = dr.list_available_variables()
vars[0].dependencies
# list of dependencies
Then you can do a graph traversal.
That said, this is probably even easier:
data_pipeline_1_start = "load_from_source_a"
data_pipeline_2_start = "load_from_source_b"
Then you can call dr.what_is_upstream_of(data_pipeline_1_start)
to get a list of nodesElijah Ben Izzy
05/15/2024, 4:42 PMJay
05/15/2024, 4:43 PMElijah Ben Izzy
05/15/2024, 4:44 PMJay
05/15/2024, 4:49 PMElijah Ben Izzy
05/15/2024, 4:50 PMJay
05/15/2024, 4:50 PMElijah Ben Izzy
05/15/2024, 4:51 PMJay
05/15/2024, 4:52 PMA thought: One way to think about this is to invert it — rather than thinking about "You have this DAG", you can think "You have these 'assets'". You can then list it out (which will be the same as pre-defined pipelines), and choose which to execute.
you hit the nail in the head with this description that is exactly what I was going forElijah Ben Izzy
05/15/2024, 4:53 PMThierry Jean
05/15/2024, 4:53 PMJay
05/15/2024, 4:54 PM