Skip to content

Commit

Permalink
bot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 3, 2024
1 parent 50d6b25 commit 2426449
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Binary file modified bot/requirements.txt
Binary file not shown.
8 changes: 4 additions & 4 deletions bot/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

logging.basicConfig(level=logging.INFO)

async def run():
asyncio.ensure_future(dp.start_polling(bot))
await app.run()
async def main():
await asyncio.gather(app.run(), dp.start_polling(bot))

asyncio.run(run())
if __name__ == "__main__":
asyncio.run(main())
12 changes: 7 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ services:
retries: 5
start_period: 5s
timeout: 10s
# deploy:
# resources:
# limits:
# cpus: '0.7'
# memory: 800M
deploy:
resources:
limits:
cpus: '0.7'
memory: 800M

bot:
build: ./bot
Expand Down Expand Up @@ -93,6 +93,8 @@ services:
image: rabbitmq:alpine
container_name: mt2107_rabbit
restart: unless-stopped
expose:
- 5672
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 30s
Expand Down

0 comments on commit 2426449

Please sign in to comment.