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
I have included information about relevant versions
I have verified that the issue persists when using the master branch of Faust.
Steps to reproduce
I have figured out that the autodiscover feature option of passing a list of modules to find has a bug in the _finalize_concrete_app method. When that method is invoked, the app has already loaded the autodiscovery modules given. More to the bug, that method uses the sys.argv[0] argument as the origin of the App. When the App is loaded again, it has the origin set which triggers the behavior of autodiscovery at the origin. In the following case, that means I cannot narrow down what subpackages I want to load from where the App lives.
Create a package with a module that has a __main__.py that passes a list of modules for the Faust app to autodiscover.
Checklist
master
branch of Faust.Steps to reproduce
I have figured out that the autodiscover feature option of passing a list of modules to find has a bug in the
_finalize_concrete_app
method. When that method is invoked, the app has already loaded the autodiscovery modules given. More to the bug, that method uses thesys.argv[0]
argument as the origin of the App. When the App is loaded again, it has the origin set which triggers the behavior of autodiscovery at the origin. In the following case, that means I cannot narrow down what subpackages I want to load from where the App lives.__main__.py
that passes a list of modules for the Faust app to autodiscover.Expected behavior
I expect that only the subpackages I give to the
autodiscover
parameter ofApp
will be loaded.Actual behavior
Everything under
pkg
is loaded.Versions
The text was updated successfully, but these errors were encountered: