projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11861d
)
CoopConsumer: Fix --unregister command.
author
Marko Kreen
<markokr@gmail.com>
Mon, 4 Jul 2011 11:49:51 +0000
(14:49 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Mon, 4 Jul 2011 12:10:24 +0000
(15:10 +0300)
DB function has 4 arguments not 3
python/pgq/coopconsumer.py
patch
|
blob
|
blame
|
history
diff --git
a/python/pgq/coopconsumer.py
b/python/pgq/coopconsumer.py
index cf97e472a5ff35857456d095927303aba4b3bdce..f4933ad3b6c6f371a8955fed90083610b11f39c3 100644
(file)
--- a/
python/pgq/coopconsumer.py
+++ b/
python/pgq/coopconsumer.py
@@
-54,7
+54,7
@@
class CoopConsumer(Consumer):
self.log.info("Unregistering consumer from source queue")
db = self.get_database(self.db_name)
cx = db.cursor()
- cx.execute("select pgq_coop.unregister_consumer(%s, %s, %s)",
+ cx.execute("select pgq_coop.unregister_consumer(%s, %s, %s
, 0
)",
[self.queue_name, self.consumer_name, self.subconsumer_name])
db.commit()