Happy Monday everyone! Are there any best practice...
# prefect-community
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.
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
Excellent, will try it out once it’s released
👍 1