mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-14 04:22:41 +00:00
Preload gunicorn app to only invoke the appconfig ready functions once
This commit is contained in:
3 files changed
+9
No files matched your search
@@ -3,3 +3,6 @@ import multiprocessing
|
||||
bind = "0.0.0.0:8000"
|
||||
|
||||
workers = multiprocessing.cpu_count() * 2 + 1
|
||||
|
||||
# preload app so that the ready functions are only executed once
|
||||
preload_app = True
|
||||
Reference in new issue
Block a user