diff options
author | Marko Kreen | 2009-06-01 13:32:08 +0000 |
---|---|---|
committer | Marko Kreen | 2009-06-01 13:39:04 +0000 |
commit | be82460b0778e282336e0a73eec5b069cd59bb53 (patch) | |
tree | 59f36e8063218cebff6be4be8ab00b805d1e2c74 /scripts/queue_loader.py | |
parent | 52fa34d45d19fe4843b77e7ff21a4f9e93832800 (diff) |
python/pgq: relaxed event handling
.tag_done() call is no more required. Events are by default in
'done' state.
In 2.x events were in 'retry' state by default, which was very bad
idea in retrospect. Changing them to 'untagged' and still requiring
tag_done() does not seem too good either. Original reasoning was to
detect and survive errors in scripts, but the result was only
confusion to everybody.
So instead of assuming that script may be buggy, now we assume
that script knows what it does. And only by explicit action
can they be tagged as retry.
Diffstat (limited to 'scripts/queue_loader.py')
-rwxr-xr-x | scripts/queue_loader.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/queue_loader.py b/scripts/queue_loader.py index c71b20e9..1b3090df 100755 --- a/scripts/queue_loader.py +++ b/scripts/queue_loader.py @@ -593,7 +593,6 @@ class QueueLoader(CascadedWorker): self.init_state(tbl) st = self.table_state[tbl] st.add(dst_curs, ev, self._batch_info) - ev.tag_done() def finish_remote_batch(self, src_db, dst_db, tick_id): curs = dst_db.cursor() |