Happy Monday everyone! Are there any best practices for sharing “clients” between tasks? By clients I mean database clients/connections, API clients etc. I would assume there’s some care to be taken here due to the distributed nature of the tasks.
j
Jeremiah
08/17/2020, 1:18 PM
Hi @Adam, excellent question! Generally, Prefect tasks are assumed to be independent but we are developing tools to allow the sharing of resources among tasks that share a memory space. You can follow the progress here, from @Jim Crist-Harif: https://github.com/PrefectHQ/prefect/pull/3139