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

implements the stderr/stdout stream redirection #75

Merged
merged 22 commits into from
Apr 13, 2012
Merged

implements the stderr/stdout stream redirection #75

merged 22 commits into from
Apr 13, 2012

Conversation

tarekziade
Copy link
Member

This branch implements the stderr/stdout stream redirection


# if gevent and gevent_zmq are available, let's use a Greenlet
# o/wise fallback to a Thread + a select
try:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe having in the ini the setting

 [circus]
 backend = gevent

instead of testing on import would be better ? or do you think it can wait next release?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not, but 'backend' is a bit vague at this level.

If the idea is to say = we will use gevent here and there in Circus when it's useful to speed up and/or scale a feature, I propose to rename it to "use_gevent = 1"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm the idea is more: if we don't find gevent when you want is as the backend we raise, else we use thread.

use_gevent would mean for me that we fallback on thread if gevent is not installed. Both are OK for me, it would be interesting to have opinions of an OP or admin there.

@tarekziade tarekziade merged commit bf9791c into master Apr 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants