Skip to content

Instantly share code, notes, and snippets.

View rtau-t24's full-sized avatar

Raymond Tau rtau-t24

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rtau-t24 on github.
  • I am rtaut24 (https://keybase.io/rtaut24) on keybase.
  • I have a public key ASAPnGdizet4uO1w3_NAUlcNQ3hGjBFUWLJdjgBN2k2y1go

To claim this, I am signing this object:

@rtau-t24
rtau-t24 / gist:3009399
Created June 28, 2012 05:57
Program hang when channel.close()
from __future__ import with_statement
from kombu.entity import Queue, Exchange
if __name__ == '__main__':
from kombu.connection import Connection
from tasks import hello_task
connection = Connection('pika://guest:guest@localhost:5672/')
print "Got connection"
channel=connection.channel()