Fix worker crash: remove broken gunicorn post_fork hook

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-06 23:02:32 +03:00
parent e334a7b32c
commit b014e64c5d
4 changed files with 31 additions and 24 deletions
+9 -2
View File
@@ -1,3 +1,10 @@
from app import create_app
import sys
create_app(setup_database=True)
try:
from app import create_app
create_app(setup_database=True)
print("Database init OK", flush=True)
except Exception as exc:
print(f"Database init FAILED: {exc}", file=sys.stderr, flush=True)
raise