https://github.com/trailbehind/rabbithunter
Monitor a RabbitMQ queue, and keep running until it is drained
https://github.com/trailbehind/rabbithunter
Last synced: about 1 month ago
JSON representation
Monitor a RabbitMQ queue, and keep running until it is drained
- Host: GitHub
- URL: https://github.com/trailbehind/rabbithunter
- Owner: trailbehind
- Created: 2019-05-24T22:45:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T20:54:26.000Z (about 6 years ago)
- Last Synced: 2025-02-28T23:11:25.548Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 23
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RabbitHunter
Run until a RabbitMQ queue is drained. If the queue is empty when service launches, it will run until the queue has had messages added, and then returns to 0 messages.
This can be used as an container in an AWS ECS task, set as an essential task, so that when it exists, the task will exit.
# Configuration
All configuration is through environment variables.
## Required
- `rabbitmq_management_host` - RabbitMQ host, format is `hostname:port`
- `rabbitmq_management_user` - RabbitMQ username
- `rabbitmq_management_password` - RabbitMQ password
## Optional
- `rabbitmq_vhost` - RabbitMQ vhost, default is `/`
- `SLEEP_INTERVAL` - Number of seconds between polling rabbitMQ. Default is `15`.
- `TIMEOUT` - Automatically terminate if queue is not drained after `TIMEOUT` seconds. Default is 172800, which is 2 days.
- `DEBUG` - enable more logging. This will log message count after each sleep interval.