Marc Gris
04/10/2024, 6:19 AMpipeline
object does not have a .name
attribute (as opposed to node
)
It would have come in handy to "restrict" certain hooks to certain pipelines.
The only hack I can come up with is to identify pipelines by the name of their nodes ?
Is there another / better way ?
Thx
M.Nok Lam Chan
04/10/2024, 8:43 AMNok Lam Chan
04/10/2024, 8:45 AMdatajoely
04/10/2024, 9:06 AMMarc Gris
04/15/2024, 10:48 AMpipeline_registry.py
with :
for name, object_ in pipelines.items():
setattr(object_, 'name', name)
What surprises me is that this works within the context of / will running the pipeline_registry.py
but when I tried to access to the monkey-patched pipeline name in hooks.py
in end up with an AttributeError: 'Pipeline' object has no attribute 'name'
What am I missing / getting wrong regarding the lifecycle ?Nok Lam Chan
04/20/2024, 9:18 PM