From ee59c440f643b57ca44fb40e3c259a9973c51af3 Mon Sep 17 00:00:00 2001 From: "syed.shafin" Date: Wed, 17 Sep 2025 23:34:23 +0600 Subject: [PATCH] Added readme --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..deb2698 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +This python script is to clean up surged rabbitMQ queue. + +--- + +## Usage +The script takes the following arguments- +``` +usage: main.py [-h] [--host HOST] [--user USER] [--password PASSWORD] [--queue QUEUE] --job-id JOB_ID --type TYPE + +RabbitMQ message purger and manager + +options: + -h, --help show this help message and exit + --host HOST RabbitMQ host (default: localhost) + --user USER RabbitMQ username (default: admin) + --password PASSWORD RabbitMQ password (default: admin) + --queue QUEUE Queue name (default: my_queue) + --job-id JOB_ID Comma-separated list of job IDs to exclude + --type TYPE Type of operation (example: createClusters) + +The script can be executed directly with python script. Follow the commands below- +``` +To run the script- +``` +git clone https://git.ngbackend.cloud/shafin.hasnat/RMQ-cleanup +pip install -r requirements.txt +python3 main.py --host=192.168.0.195 --user=admin --password=admin --queue=my_queue --job-id=12345,54321 --type=createClusters +``` \ No newline at end of file