Join Slack
Powered by
Is it possible to access flow parameters from with...
# ask-community
f
Frank Oplinger
12/05/2021, 5:15 PM
Is it possible to access flow parameters from within a state handler? On failure, I’d like to send a notification to a specific user who’s info is passed into the flow as a parameter.
t
Tilak Maddy
12/05/2021, 5:41 PM
Checkout Cloud Hooks ! I am not too sure if that's what you are looking for tho
https://docs.prefect.io/orchestration/concepts/cloud_hooks.html#web-cloud-hook
k
Kevin Kho
12/05/2021, 6:37 PM
You can use
prefect.context.parameters
which returns a dict of the parameters and their values
f
Frank Oplinger
12/05/2021, 6:59 PM
Thanks to you both!
3
Views
Open in Slack
Previous
Next