hi all, I'm looking to automate a recovery flow wh...
# ask-community
j
hi all, I'm looking to automate a recovery flow when a flow crashes. I've created an automation that is triggered on a flow crash. I want to retry the same flow, but the piece im missing is how to pull out the parameters to the flow that triggered the automation. I've tried pulling it from the deployment.parameters, but I've not had success yet
The documentation suggests parameters are available, but it doesn't make it clear how to use it. https://docs.prefect.io/latest/ui/automations/#automations-api
This issue seems to be adding support for retrying crashed flows natively https://github.com/PrefectHQ/prefect/issues/10211 which would be ideal.
But until that's released I'd like to figure out the automation solution
ok so ive created a slack hook and i can see that the url parameter is empty!
But the original flow definitely has a url in the parameters. 🤔
I think this is a bug.
ok turns out that the documentation was misdirecting me. flow_run.parameters is what im looking for