Skip db preload on healtchcheck requests
This commit is contained in:
parent
c2c9d51a59
commit
bad29a5aec
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ main = Blueprint('main', __name__)
|
|||
|
||||
@app.before_request
|
||||
def before_request():
|
||||
if request.path == '/_health':
|
||||
return
|
||||
g.milestones = Milestone.query.filter_by(active=True).order_by(Milestone.name).all()
|
||||
g.version = __version__
|
||||
g.version_date = misc.version_date()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue