Philip MacMenamin
08/12/2022, 4:13 PMtask_name
, which returns "some_value", and I do:
state = flow.run()
How to I get the return of task_name
? (ie "some_value")Anna Geller
>>> state = flow.run()
>>> state._result.value # a Flow State's Result value is its Tasks' States
{<Task: add>: <Success: "Task run succeeded.">,
<Task: add>: <Success: "Task run succeeded.">}
>>> state.result # the public property aliases the same API as above
{<Task: add>: <Success: "Task run succeeded.">,
<Task: add>: <Success: "Task run succeeded.">}
>>> state.result[task_ref]._result # a Task State's Result contains the Task's return value
Philip MacMenamin
08/12/2022, 4:38 PM_result
of task task_name
I guess?state.result[task_ref]
where are you getting task_ref
from?Anna Geller