Alex Despotakis
04/08/2021, 4:50 PMSolidExecutionContext
object called context
for some solid in composite pipeline COMP
, made up of pipelines A
, B
, and C
. If I call context.pipeline_name
the property will return COMP
. Let's say the context is from a solid that exists in A
, is there an EASY way to trace the solid back to the originating pipeline? In this case, each solid in COMP
is unique. Alternatively, if we know the pipeline's name in advance, is there a way to get all of the solids in that pipeline? That might be easier than the garbage I came up with.alex
04/08/2021, 5:51 PMpipeline_name
is on the SolidExecutionContext
Alex Despotakis
04/08/2021, 5:52 PMCOMP
. I wanted pipeline_name
to return A
alex
04/08/2021, 5:52 PMAlternatively, if we know the pipeline’s name in advance, is there a way to get all of the solids in that pipeline?if you have the a
PipelineDefinition
there is all_solid_defs
solid_handle
which is on the context
https://github.com/dagster-io/dagster/blob/master/python_modules/dagster/dagster/core/definitions/dependency.py#L205-L347Alex Despotakis
04/08/2021, 6:04 PMsolid_handle
doesn't seem to work for me either, I'm gonna take lunch and try out that PipelineDefinition
solution that you mentioned. Thank you Alex!sandy
04/08/2021, 6:17 PMAlex Despotakis
04/08/2021, 7:05 PM