Created
August 24, 2012 00:03
-
-
Save dickbrouwer/3443798 to your computer and use it in GitHub Desktop.
Clearing AMQP queue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from amqplib import client_0_8 as amqp | |
conn = amqp.Connection(host="localhost:5672", userid="<user>", password="<passwd>", virtual_host="<vhost>", insist=False) | |
conn = conn.channel() | |
conn.queue_purge("<queue_name>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment