summaryrefslogtreecommitdiff
path: root/python/pgq/remoteconsumer.py
AgeCommit message (Collapse)Author
2011-02-11serialconsumer: fix batch_info usageMarko Kreen
2011-02-04python/pgq: batch_info cleanupMarko Kreen
- move batch_info compat from sql to python - get rid of get_batch_info(), self.batch_info is always defined - make remoteconsumer use self.batch_info
2009-09-10python/: clean up importsMarko Kreen
- Remove unused imports - Remove relative imports
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-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