Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should Service be a state machine? #22

Closed
progrium opened this issue Dec 1, 2011 · 1 comment
Closed

should Service be a state machine? #22

progrium opened this issue Dec 1, 2011 · 1 comment
Labels

Comments

@progrium
Copy link
Owner

progrium commented Dec 1, 2011

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

@progrium
Copy link
Owner Author

I think we decided yes to this. Here is an example:
https://gist.github.com/1435968

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant