Questions tagged [python-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.

80 questions
0
votes
0 answers

SIGHUP signal give exception with pika in python 2.7

I have a pika consumer when i run it and sends SIGHUP signal, It gives me an exception Consumertest.py import signal import traceback import pika from time import sleep received_signal = False def signal_handler(signal, frame): global…
Aditya lohia
  • 21
  • 1
  • 5
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

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
-1
votes
1 answer

implement a background job inside a http microservice

i have a microservice (written in Python) which exposes a few endpoints, each of these endpoints can be executed by a http request(flask). I have one specific endpoint which takes a long time to be finished, so I thought to run a background job once…
-1
votes
1 answer

Python pikascript.py fails from command prompt

I have a script in python which is used to connect to RabbitMQ server and consumes messages. When i tried to run the script from command prompt as "./pikascript.py" i am getting the proper output but the same script when i try to execute as "python…
Madhuri
  • 101
  • 1
  • 5
  • 11
1 2 3 4 5
6