-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback to the original behavior if prefix is not available (#1068) #1499
Fallback to the original behavior if prefix is not available (#1068) #1499
Conversation
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with keeping the old behavior as a fallback. Please rebase your branch, update the documentation add a test case, thanks!
@berkerpeksag the change is quite old though (2 years in #1068) . I guess we need to cover it by a test before merging it. Just to make sure we don't forget anything. Or maybe we can check we try to load a module? Like checking if it has an extension at least. Thoughts? |
e0171e8
to
4448569
Compare
@yyuu sorry, I overwrote your original change in |
I've addressed my own review comments.
cfg = self.get_config_from_filename(filename) | ||
else: | ||
try: | ||
cfg = self.get_config_from_module_name(location) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we re-add that feature, wouldn’it be better to add the warning based kn the principle of least astonishment? Espacially since this chang re-add a behaviour removed 2 years ago. thoughts?
@berkerpeksag bump. |
I needed to restore the original behavior because some external applications was actually relying on the behavior.
https://github.com/apache/incubator-airflow/blob/1.8.0/airflow/bin/cli.py#L775
I believe this needs to be fixed in gunicorn side because the caller of
gunicorn
cannot know how gunicorn behaves on-c
before it actually invokesgunicorn
.