:wave: hello from Melbourne Australia!! Im trying ...
# ask-community
d
👋 hello from Melbourne Australia!! Im trying to have my state handler output some more useful information other than just "task failed". I would like it to output the parameters of that specific flow run. Is there a way I can access these within my state handler?
👋 1
c
Hello @Dean Magee! Yes, you should be able to access flow run parameters via `prefect.context`:
Copy code
prefect.context.parameters # a dictionary of parameter name -> value
d
do you mean something like....
Copy code
def alert_failed(obj, old_state, new_state):
    if new_state.is_failed():
        print(prefect.context.parameters)
        
    return new_state
c
yup yup, exactly
🙌 1
d
Great. Thanks!