Jeff Brainerd
01/26/2021, 8:42 PMon_start
arg in order to bootstrap django when our flow runs. I’m not seeing any replacement for that in the new RunConfig world. Did I miss something… or is there another pattern for this? Thanks!Amanda Wee
01/26/2021, 9:25 PMJim Crist-Harif
01/26/2021, 9:57 PMon_start
hooks haven't been added back (yet). The hope was other patterns might suffice.
In your case, it sounds like your tasks rely on some implicit local state - if this fails to set up properly you probably want to be informed of failure (and get logs), just like any other tasks. You might find the resource_manager
pattern useful for this: https://docs.prefect.io/core/idioms/resource-manager.html.
In this case, you'd create a resource_manager
for that would bootstrap django in setup
, and cleanup resources in cleanup
.resource_manager
option isn't a good fit for your needs.Jeff Brainerd
02/05/2021, 1:35 AM