z

    Zach

    2 years ago
    Can I get the output of a result_handler on a task from within a state_handler on that same task?
    Chris White

    Chris White

    2 years ago
    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

    2 years ago
    @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.
    Chris White

    Chris White

    2 years ago
    correct, so you want
    new_state._result.safe_value.value