progrium/gservice — Issue #22: should Service be a state machine?
Author: progrium
Created: 2011-12-01 01:06:30+00:00
State: open
Labels: discuss

I've gone back and forth about this. Imagine a service with these states:

* idle
* starting
* ready
* stopping
* reloading

The `require_ready` decorator would wait for the ready state (although it could already do this). There could be a `wait_for(state)` method. Services could go out of ready state.

This is a more general solution to the issue here: https://github.com/progrium/gservice/issues/21