This shows you the differences between two versions of the page.
|
isi:laboratoare:07 [2025/11/16 10:29] alexandru.predescu [Exerciții] |
isi:laboratoare:07 [2025/11/21 12:52] (current) stefanel.turcu |
||
|---|---|---|---|
| Line 308: | Line 308: | ||
| print(f"Exchange-ul '{exchange_name}' de tip 'fanout' a fost creat.") | print(f"Exchange-ul '{exchange_name}' de tip 'fanout' a fost creat.") | ||
| - | hannel.queue_declare(queue=queue_name) | + | queue_name = "queue1" # nume diferite pentru fiecare consumator |
| + | channel.queue_declare(queue=queue_name) | ||
| # Legare queue la exchange | # Legare queue la exchange | ||
| - | queue_name = "queue1" # nume diferite pentru fiecare consumator | ||
| - | |||
| channel.queue_bind(exchange=exchange_name, queue=queue_name) | channel.queue_bind(exchange=exchange_name, queue=queue_name) | ||