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

Event timeout increases with every client loop #9302

Closed
olliewalsh opened this issue Dec 16, 2013 · 4 comments
Closed

Event timeout increases with every client loop #9302

olliewalsh opened this issue Dec 16, 2013 · 4 comments
Labels
Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists

Comments

@olliewalsh
Copy link
Contributor

The logic for the proc based client is ok:

Set timeout to 5 initially:

inc_timeout = timeout

Set start to time.time():

start = int(time.time())

If time.time() > start + timeout we have timed out:

if int(time.time()) > start + timeout:

If minions returned increase timeout by inc_timeout (5s)

timeout += inc_timeout

However for the event based client the event system is polled with a wait time that increases with each loop:

raw = self.event.get_event(timeout, jid)

@olliewalsh
Copy link
Contributor Author

Related to pull req #8581 and issue #7157 (and a number of related issues)

@basepi
Copy link
Contributor

basepi commented Dec 17, 2013

Good detective work! Thanks for your continued work on these timeout issues, @olliewalsh!

@cachedout
Copy link
Contributor

@olliewalsh Is this among the issues that was fixed with your recent round of changes? No worries if you're not sure, just wanted to check with you before I spent the time to try and reproduce. Thanks again!

@olliewalsh
Copy link
Contributor Author

Yea, this is fixed too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists
Projects
None yet
Development

No branches or pull requests

3 participants