You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cool finding. That's definitely a bug. Configuration provider has a cache. It uses cache to avoid traveling for the value to a root provider. In that case cache root provider does not reset cache for a child config provider in a child container.
The workaround is to manually call container.core.config.reset_cache(). I'll also publish a fix on PyPI. Thanks for reporting the issue.
Hi,
I'd like to use mutiple containers like in the example: https://python-dependency-injector.ets-labs.org/examples/application-multiple-containers.html
But I have the following problem, my factories use the first configuration value and ignore the new values.
If I use a single container it works fine.
Here is an example that re-create the problem:
I'd appreciate if you could tell me why the first value set can be seen by the Core container but subsequent updates are ignored
Thanks
The text was updated successfully, but these errors were encountered: