Refactor Consumer code.
authorPetr Jelinek <git@pjmodos.net>
Tue, 8 Jan 2013 14:31:34 +0000 (15:31 +0100)
committerPetr Jelinek <git@pjmodos.net>
Tue, 8 Jan 2013 14:31:34 +0000 (15:31 +0100)
commite590e5f3b047fc7d226ef712413729bfb71cbf02
tree2f9ad23920c7d91024dd5d945dbc98c55a0cb763
parent6fc8e0080ab3da01c5ac9fb9d2c30aea1cb54555
Refactor Consumer code.

    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.
python/pgq/baseconsumer.py [new file with mode: 0644]
python/pgq/consumer.py
python/pgq/event.py
python/pgq/localconsumer.py