Skip to content

Commit

Permalink
fix(startup): set preload_app to True
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Dec 9, 2024
1 parent 895a538 commit 00c4d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helm-chart/sefaria-project/templates/configmap/gunicorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ data:
{{- end }}
loglevel = "warning"
preload_app = True
{{- if .Values.instrumentation.enabled }}
def post_fork(server, worker):
Expand All @@ -33,7 +34,7 @@ data:
{{- end }}
def when_ready(server):
def on_starting(server):
from reader.startup import init_library_cache
init_library_cache()
Expand Down

0 comments on commit 00c4d84

Please sign in to comment.