diff options
author | Marko Kreen | 2009-09-09 11:09:40 +0000 |
---|---|---|
committer | Marko Kreen | 2009-09-10 11:45:09 +0000 |
commit | 4e3d76ee0d6cd509bfbf9d0ecdf3a4774f9027b1 (patch) | |
tree | f47190a1713594c4504cfed76a42f08d12ca57bd /python/pgq/consumer.py | |
parent | 7dbe90b5df0178a711986a9b5f91c57a9544cff6 (diff) |
londiste: on error, apply sql on-by-one
Check whether last loop got error (work_state = -1)
and apply sql one-by-one if thats true.
Also, apply TRUNCATE separately from other SQL.
Diffstat (limited to 'python/pgq/consumer.py')
-rw-r--r-- | python/pgq/consumer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pgq/consumer.py b/python/pgq/consumer.py index 32fa9f76..57a74a3e 100644 --- a/python/pgq/consumer.py +++ b/python/pgq/consumer.py @@ -245,7 +245,7 @@ class Consumer(skytools.DBScript): curs.execute(q, [self.queue_name, self.consumer_name]) return curs.fetchone()[0] - def _flush_retry(self, curs, list): + def _flush_retry(self, curs, batch_id, list): """Tag retry events.""" retry = 0 |