Question on state_handler, is there anyway to pass arguments to state_handler? I want to update database table when flow or task fails. The arguments are database config information and credentials
k
Kevin Kho
04/15/2022, 2:18 PM
Not really.. You’d have to pull them from somewhere else. If they are secrets though, they might be available in
prefect.context.secrets
, parameters will be in
prefect.context.parameters
so you can pull those inside a state handler. Would that help you?
p
Patrick Tan
04/15/2022, 2:20 PM
I think so, do you have example of storing and retrieving parameters and secrets?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.