-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactor some of the methods to make them work better. - add a method to get the nodes - fix tests for the new methods - Remember to release the semaphore so other threads can continue - Set more log to info levels - Add a small script to generate 9k queues for testing purpouses - Some more error catch
- Loading branch information
Itxaka
committed
Feb 5, 2018
1 parent
80e8dda
commit 5a18f17
Showing
3 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pika | ||
|
||
parameters = pika.ConnectionParameters( | ||
host="localhost", | ||
virtual_host="/", | ||
credentials=pika.PlainCredentials("guest", "guest") | ||
) | ||
connection = pika.BlockingConnection(parameters) | ||
channel = connection.channel() | ||
|
||
for i in range(9000): | ||
channel.queue_declare(queue="channel{}".format(i), durable=True) | ||
|
||
connection.close() |