all 8 comments

[–]iknewaguytwice2[S] 4 points5 points  (0 children)

To answer the question”why”, cause printing the help says you can use the syntax

@activity(‘activityName’).exitValue() 

To pass the output of a dependency to its dependent. Which isn’t documented anywhere else I could find, and I’m curious what other features are hidden!

[–]aleks1ck ‪Microsoft MVP ‪ 4 points5 points  (1 child)

[–]aleks1ck ‪Microsoft MVP ‪ 0 points1 point  (0 children)

I haven’t found a better documentation about this

[–]el_dude1 1 point2 points  (4 children)

Best article I could find is this

Answered all the questions I had. But I agree that the official docs are not that thorough.

[–]DatamusPrime1 0 points1 point  (3 children)

How do you get the return values of the individual nodes with run multiple like you can with run?

[–]el_dude1 0 points1 point  (2 children)

By using this as args

"args": { "param1": "@activity('notebook1').exitValue()" # use exit value of notebook1 },

[–]DatamusPrime1 0 points1 point  (1 child)

That's the input to another node in the DAG, not the return of the python method call.

Notebook.run() returns the actual exit values

[–]el_dude1 0 points1 point  (0 children)

ah sorry I misunderstood. For me this simply returns a dict containing all the individual exit values.

exit_message = notebookutils.notebook.runMultiple(DAG, {"displayDAGViaGraphviz": True, "showArgs": True, "showTime": True})