banao-tech commited on
Commit
3386afc
·
verified ·
1 Parent(s): b7a4dbf

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -82,8 +82,8 @@ async def worker():
82
  @app.on_event("startup")
83
  async def startup_event():
84
  logger.info("Starting background worker...")
85
- for _ in range(4):
86
- asyncio.create_task(worker()) # Start the worker in the background
87
 
88
 
89
  # Define the process function
 
82
  @app.on_event("startup")
83
  async def startup_event():
84
  logger.info("Starting background worker...")
85
+
86
+ asyncio.create_task(worker()) # Start the worker in the background
87
 
88
 
89
  # Define the process function