Questions tagged [pika]

Python-Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that tries to stay fairly independent of the underlying network support library. Python-Pika was developed primarily for use with RabbitMQ, but should also work with other AMQP 0-9-1 brokers.

Python-Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that tries to stay fairly independent of the underlying network support library. Python-Pika was developed primarily for use with RabbitMQ, but should also work with other AMQP 0-9-1 brokers.

672 questions
0
votes
2 answers

amqp pika hangs at basic_publish()

Recently upgraded to RabbitMQ version 3.2.0 from 2.x previously. The version of pika being used is 0.9.13. Previously when sending "large" messages (20k - 40k bytes...so maybe not that large) it would send the message without any problems. Now…
user3614014
  • 653
  • 1
  • 6
  • 22
0
votes
0 answers

How to run Multiple Exchanges in Pika/RabbitMQ

I want to create multiple exchanges with different exchange names in Pika/RabbitMQ. But the code I have seen all creates an exchange, and then using SelectConnection type, then calls connection.ioloop.start() which just continously runs. If I want…
cybergoof
  • 1,407
  • 3
  • 16
  • 25
0
votes
0 answers

Start another program from python subprocess module at system startup in ubuntu

I have a problem starting another process from python at system startup, but not when running from terminal. My code : import pika import time import sys import logging import json import os import config import subprocess as sp from…
Atul Mishra
  • 298
  • 2
  • 11
0
votes
1 answer

RabbitMQ consumers getting killed after some time

I'm in need of a setup where multiple consumers should listen to a Queue continuously. I am able to start multiple consumers and processing works as expected. But after some time when there are no messages to process, the consumers are getting…
Anbarasan
  • 11
  • 3
0
votes
1 answer

RabbitMQ Message/Topic Receiver Crashing when RabbitMQ is not running

I am using python and pika on linux OS Environment. Message/Topic Receiver keeps crashing when RabbitMQ is not running. I am wondering is there a way to keep the Message/Topic Receiver running when RabbitMQ is not because RabbitMQ would not be on…
Avril
  • 25
  • 4
0
votes
0 answers

Python RabbitMQ client hanging

I have a simple python script based on the RabbitMQ send.py example. The original send.py works fine on my setup, but when I use an added user and virtual host, the script hangs when performing connection.channel() #!/usr/bin/python import…
wayne
  • 95
  • 1
  • 4
0
votes
1 answer

publishing and subscribing through rabbitmq server

I need a scenario where one node send a message and another node starts waiting to get the message. Each node after getting message sent turns into listener and after receiving message it turns into publisher again.
sayan
  • 501
  • 2
  • 7
  • 21
0
votes
1 answer

Code Design: resend a message to Rabbit from try except block

I'm looking for any help. I want to fix an insert_order_queue() function to be able to resend a message to RabbitMQ if the message wasn't actually got delivered to the server. This is my current code: def insert_order_queue(self, msg): '''…
Vor
  • 33,215
  • 43
  • 135
  • 193
0
votes
1 answer

RabbitMQ RPC call works in real life, but doesn't work in tests

I have Flask application and implemented RPC in it. engine.py import pickle import pika from databasyfacade.rpc import api __author__ = 'Marboni' def on_request(ch, method, props, body): request = pickle.loads(body) func = getattr(api,…
Marboni
  • 2,399
  • 3
  • 25
  • 42
0
votes
1 answer

Is it possible to dispatch no more than N number of messages from the queue at a given time with distributed consumers?

I have a distributed system that reads messages from RabbitMQ. In my situation now I need to process no more than N msgs/s. For example: Imagine service A that sends text messages (SMS). This service can only handle 100 msgs/s. My system has…
Vor
  • 33,215
  • 43
  • 135
  • 193
0
votes
1 answer

How to add callbacks to write a file while subscribing

This is probably a question about python callbacks as much as using pika. I'm trying to develop some code that subscribes to a queue in RabbitMQ, processes the payload of any delivered message and then write that payload to a series of (disk) files.…
bzo
  • 1,532
  • 7
  • 27
  • 40
0
votes
3 answers

How to subscribe consumer to N number of unknown queues?

I'm trying to understand how to do this: Some producers creates N number of queues ( lets say foo.1 foo.2 foo.3 ). Than I have one consumer on another part of the Rabbit that needs to get messages from all N (in my example 3 ) queues. I know I can…
Vor
  • 33,215
  • 43
  • 135
  • 193
0
votes
1 answer

Specify what type of queue is that

I'm very new to messaging system, and I was trying to find my answer on http://www.rabbitmq.com/tutorials/, and I'm pretty sure it should be over there, but so far I got little bit confused with all bindings, queues, exchanges. So I'm looking an…
Vor
  • 33,215
  • 43
  • 135
  • 193
0
votes
1 answer

RabbitMQ - pika - rabbit.js - node.js

I'm using Python, rabbitmq, pika, rabbit.js and node.js. The idea is to send messages to clients and act accordingly. There are multiple types of messages being sent. So, on the server side I have a method which will receive the message and the…
Damium
  • 83
  • 1
  • 5
0
votes
1 answer

How to connect Tornado and Pika with RabbitMQ via a shared event loop?

I'm using the TornadoConnection adapter in Pika, however found the documentation to be light. I'd like: Tornado initiates a Pika producer via a handler Pika executes the consumer(s) Tornado is notified via callback when the consumption is complete…
Khanan Grauer
  • 129
  • 2
  • 6
1 2 3
44
45