praekelt/vumi — pull request #417 by jerith (2012-11-13 10:44:59+00:00)
Title: Switch to start-paused consumers for transports and applications

The current consumer startup mechanism is annoying and requires careful ordering of setup and teardown to ensure that everything is ready before messages start arriving. We have a better mechanism that involves starting the consumers with a paused channel and only unpausing at the end of setup.

This ticket is about switching the basic setup of `Transport`s and `ApplicationWorker`s to use paused consumers. Cleaning up the surrounding code and simplifying the startup process in general is out of scope, although small or localised cleanups might be doable.

(I have a working implementation in a branch, but lack a suitable internet connection to push it. I'll do that tomorrow, probably.)