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.
I've gone back and forth about this. Imagine a service with these states:
The
require_ready
decorator would wait for the ready state (although it could already do this). There could be await_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