question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make `webserver_config.py` location customizable

See original GitHub issue

Description webserver_config.py location is hard-coded as follows:

WEBSERVER_CONFIG = AIRFLOW_HOME + '/webserver_config.py'

It would be great if this path is customizable.

Use case / motivation Since AIRFLOW_HOME/config is already in PYTHONPATH (though that’s also hard-coded), it’s common for user to mount all config files under AIRFLOW_HOME/config. However, this webserver_config.py needs extra handling, either by mounting using a subPath explicitly, or in my case, creating a symbolic link from AIRFLOW_HOME/webserver_config.py to AIRFLOW_HOME/config/webserver_config.py in the image.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kaxilcommented, Feb 25, 2021

https://github.com/apache/airflow/pull/14353 – this one – that fixes it for the Helm Chart

1reaction
fengsicommented, Aug 6, 2020

@fengsi I like this idea. This can be standardized to have a similar interface to logging_config_class. Would you like to work on it?

Sure, I’d be willing to make that happen. I may also take care of other config paths together. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webserver — Airflow Documentation
Here is an example of defining a custom security manager. This class must be available in Python's path, and could be defined in...
Read more >
All About Airflow Webserver Made Easy 101 - Hevo Data
The following is an example of how to define a custom security manager. This class must be in Python's path and, if desired,...
Read more >
Where to check logs of webserver_config.py in Airflow?
Could you add the following: import logging from airflow.utils.log.logging_mixin import RedirectStdHandler logger = logging.
Read more >
airflow 7.14.0 · airflow-helm/airflow-helm - Artifact Hub
custom -values.yaml # Helm 2 helm install \ airflow-stable/airflow \ --name ... To create the my-airflow-webserver-config ConfigMap, you could use:
Read more >
Create a Python Web Server
But you can also create a custom web server which has unique functionality. In this article you'll learn ... You could serve it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found