Spaces:
Paused
Paused
Update worker.py
Browse files
worker.py
CHANGED
|
@@ -41,7 +41,8 @@ async def start_worker(worker_id: int):
|
|
| 41 |
traceback.print_exc()
|
| 42 |
await asyncio.sleep(2)
|
| 43 |
|
| 44 |
-
|
|
|
|
| 45 |
print("🚀 Sniper Engine Starting...")
|
| 46 |
concurrency = await db.get_concurrency()
|
| 47 |
|
|
@@ -54,4 +55,4 @@ async def main():
|
|
| 54 |
await asyncio.gather(*tasks, return_exceptions=True)
|
| 55 |
|
| 56 |
if __name__ == "__main__":
|
| 57 |
-
asyncio.run(
|
|
|
|
| 41 |
traceback.print_exc()
|
| 42 |
await asyncio.sleep(2)
|
| 43 |
|
| 44 |
+
# --- RENAMED TO MATCH YOUR main.py ---
|
| 45 |
+
async def run_worker():
|
| 46 |
print("🚀 Sniper Engine Starting...")
|
| 47 |
concurrency = await db.get_concurrency()
|
| 48 |
|
|
|
|
| 55 |
await asyncio.gather(*tasks, return_exceptions=True)
|
| 56 |
|
| 57 |
if __name__ == "__main__":
|
| 58 |
+
asyncio.run(run_worker())
|