ashb commented on a change in pull request #5587: [AIRFLOW-4953] Remove unused
variables in core
URL: https://github.com/apache/airflow/pull/5587#discussion_r303357251
##########
File path: airflow/www/app.py
##########
@@ -80,8 +80,7 @@ def create_app(config=None, session=None, testing=False,
app_name="Airflow"):
api.load_auth()
api.API_AUTH.api_auth.init_app(app)
- # flake8: noqa: F841
- cache = Cache(app=app, config={'CACHE_TYPE': 'filesystem', 'CACHE_DIR':
'/tmp'})
+ Cache(app=app, config={'CACHE_TYPE': 'filesystem', 'CACHE_DIR': '/tmp'})
Review comment:
Does the cache still work here - I guess it's referred to somerwhere in the
Flask/WSGI app so is protected from GC?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services