Skip to content

Instantly share code, notes, and snippets.

View ionutbaltariu's full-sized avatar
:shipit:

Ionut-Alexandru B. ionutbaltariu

:shipit:
View GitHub Profile
@rlcarrca
rlcarrca / new_task.py
Created April 16, 2016 20:29
Multiprocessing sample with RabbitMQ
#!/usr/bin/env python
import sys
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello', durable=True)