Skip to content

Set default polling interval for Runners to 1 second#2160

Merged
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_revert_runner_polling_interval
Nov 7, 2018
Merged

Set default polling interval for Runners to 1 second#2160
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_revert_runner_polling_interval

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Nov 7, 2018

In a recent change this parameter was corrected from 0 to 30 seconds to
prevent the daemon workers from spinning the processors too much, but
this really slows down the tests. Until resources like runners and
communicators are created in a central place, that allows settings to be
determined based on the active profile, e.g. with special settings for
test profiles, we need to revert this to 1 second. This will allow the
tests to run reasonably fast, without overloading processors too much.

In a recent change this parameter was corrected from 0 to 30 seconds to
prevent the daemon workers from spinning the processors too much, but
this really slows down the tests. Until resources like runners and
communicators are created in a central place, that allows settings to be
determined based on the active profile, e.g. with special settings for
test profiles, we need to revert this to 1 second. This will allow the
tests to run reasonably fast, without overloading processors too much.
@sphuber sphuber requested a review from muhrin November 7, 2018 12:24
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 68.577% when pulling bf05360 on sphuber:fix_revert_runner_polling_interval into fae3dfc on aiidateam:develop.

@sphuber sphuber requested a review from ltalirz November 7, 2018 12:46
@ltalirz
Copy link
Copy Markdown
Member

ltalirz commented Nov 7, 2018

0.1s would be already too low?

@sphuber
Copy link
Copy Markdown
Contributor Author

sphuber commented Nov 7, 2018

That is something we would have to determine empirically. Zero is definitely not a good idea for production environments if you value your procs. In any case, this PR is more to restore normal test running times (they were taking 30 mins with 30. second as a setting). We are working on a PR with martin to make these things centrally controlled and automatically set for testing profiles

@sphuber sphuber merged commit d4d327f into aiidateam:develop Nov 7, 2018
@sphuber sphuber deleted the fix_revert_runner_polling_interval branch November 7, 2018 13:45
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.

4 participants