Hello, everybody. I would like to ask if anyone has solved a similar problem. I would like to deploy flows, which are using Django ORM. I know it is possible to initialize Django (django.setup()) in a each flow run, but I think it is inefficient, because some flows will probably be scheduled for every minute. The ideal would be to initialize Django once for each ProcessWorker. It looks like Prefect starts a separate process for each flow, this process doesn't have the context from the ProcessWorker and so initializing in ProcessWorker start methods won't help. Do you have any ideas how to solve this? Thanks.
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.