Hydra-Bolt commited on
Commit
33c5eeb
·
1 Parent(s): b8392c6
Files changed (1) hide show
  1. app/main.py +3 -2
app/main.py CHANGED
@@ -14,9 +14,10 @@ def read_root():
14
  def start_notification_service():
15
  notification_service()
16
 
 
 
 
17
  if __name__ == "__main__":
18
  # Start notification service in a background thread
19
- notif_thread = threading.Thread(target=start_notification_service, daemon=True)
20
- notif_thread.start()
21
  # Run FastAPI server in the main thread
22
  uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=False)
 
14
  def start_notification_service():
15
  notification_service()
16
 
17
+ notif_thread = threading.Thread(target=start_notification_service, daemon=True)
18
+ notif_thread.start()
19
+
20
  if __name__ == "__main__":
21
  # Start notification service in a background thread
 
 
22
  # Run FastAPI server in the main thread
23
  uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=False)