Mbonea commited on
Commit
c9a3904
1 Parent(s): 6aaa54e

Workers 10

Browse files
Files changed (2) hide show
  1. App/app.py +1 -1
  2. Dockerfile +1 -1
App/app.py CHANGED
@@ -44,7 +44,7 @@ def authjwt_exception_handler(request: Request, exc: AuthJWTException):
44
 
45
  @app.on_event("startup")
46
  async def startup_event():
47
- await bot.start(bot_token="6183919505:AAEhHFt4mI18bQeAf2Lj7AePXFRPVLrOFM8")
48
  # await upload_bot.start()
49
  # await models.create_all()
50
 
 
44
 
45
  @app.on_event("startup")
46
  async def startup_event():
47
+ # await bot.start(bot_token="6183919505:AAEhHFt4mI18bQeAf2Lj7AePXFRPVLrOFM8")
48
  # await upload_bot.start()
49
  # await models.create_all()
50
 
Dockerfile CHANGED
@@ -22,7 +22,7 @@ USER admin
22
  COPY --chown=admin . /srv
23
 
24
  # Command to run the application
25
- CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 1 & celery -A App.Worker.celery worker -c 8 --loglevel=info
26
 
27
  # Expose the server port
28
  EXPOSE 7860
 
22
  COPY --chown=admin . /srv
23
 
24
  # Command to run the application
25
+ CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 10 & celery -A App.Worker.celery worker -c 8 --loglevel=info
26
 
27
  # Expose the server port
28
  EXPOSE 7860