-
-
Notifications
You must be signed in to change notification settings - Fork 334
Open
Labels
Description
Hi!
We've started to use dependency-injector in production recently and we're happy so far, but we've faced issue with async resources initialization order. The problem is that according to the source code async resources init methods runs concurrently using asyncio.gather
def init_resources(self): |
But in some cases we need to initialize some resources before the others and that's where we've faced race conditions.
Is there any way to avoid such situations in current implementation or future releases? If not i'd be happy to contribute :)
xfenix, amazingguni and Mityuha