summaryrefslogtreecommitdiff
path: root/python/pgq/event.py
AgeCommit message (Collapse)Author
2013-12-03python/pgq: fixes (event & walker)martinko
2013-07-07pgq: move RetriableEvent to consumer.pyMarko Kreen
It's hard to get overview if the retry-related code is laying around in different places. As only Consumer class deals with retry, move all crap into same file.
2013-01-25Remove typo in EventPetr Jelinek
2013-01-14pgq.event: __slots__ cleanupMarko Kreen
2013-01-11Move more of retry logic away from BaseConsumer/Event classesPetr Jelinek
2013-01-08Refactor Consumer code.Petr Jelinek
Common code from pgq.Consumer goes into new pgq.BaseConsumer, pgq.Consumer and pgq.LocalConsumer are now subclasses of pgq.BaseConsumer and pgq.Consumer adds retry api/logic. pgq.Event code is now split between pgq.Event and pgq.RetriableEvent. These changes reflect the fact that pgq.LocalConsumer should not be allowed to use retry logic.
2009-06-01python/pgq: relaxed event handlingMarko Kreen
.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.
2009-04-21pgq: Drop failed event handling.Marko Kreen
Badly designed and unused concept. If such thing is needed it's much better to handle them via actual queue.
2009-02-13python/pgq updateMarko Kreen
- remove the obsolete setconsumer stuff - New CascadedConsumer / CascadedWorker classes, that are based on regular pgq.Consumer - move RemoteConsumer / SerialConsumer out of pgq/consumer.py pgq.Consumer: - rename conf params and instance variables: pgq_queue_name -> queue_name pgq_consumer_id -> consumer_name - disable automatic registration on the queue, now script needs to be called with switches --register / --unregister - drop code to read from multiple-queues at once pgq.ticker: - drop event seq tracking code, this is now done in db
2008-04-23pgq.event: forgot to export EV_UNTAGGEDMarko Kreen
2008-04-22pgq.Consumer - complain on untagged events, instead of sending them to retry ↵Marko Kreen
queue
2007-03-13final public releaseskytools_2_1Marko Kreen