https://prefect.io logo
#show-us-what-you-got
Title
# show-us-what-you-got
z

Zach

04/01/2020, 4:20 PM
Can I get the output of a result_handler on a task from within a state_handler on that same task?
c

Chris White

04/01/2020, 4:23 PM
Hi @Zach - yes you should be able to access anything about the task’s result / result handler by accessing
new_state._result
(note the underscore)
z

Zach

04/01/2020, 4:30 PM
@Chris White the
new_state._result
value is the value of the result of the task. I am using the GCSResultHandler and I want the output of it's write() method so my state handler can have the URI that the result is written to in GCS.
c

Chris White

04/01/2020, 4:32 PM
correct, so you want
new_state._result.safe_value.value
4 Views