Skip to content

Instantly share code, notes, and snippets.

View wholevinski's full-sized avatar

Wesley Holevinski wholevinski

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)