Allow scheduler tasks to request longer wait periods
This change allows a scheduler co-routine to yield an integer n, such
that only every nth call to TaskRunner.step() results in the co-routine
being advanced. We'll be able to use this to selectively slow down
polling of resources where and when we know it doesn't make sense to
poll every second.
Reviewed: https:/ /review. openstack. org/313148 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=8f8330573b9 6ddfb43c5d44f35 77c101b34ae299
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8f8330573b96ddf b43c5d44f3577c1 01b34ae299
Author: Zane Bitter <email address hidden>
Date: Tue May 17 12:29:12 2016 -0400
Allow scheduler tasks to request longer wait periods
This change allows a scheduler co-routine to yield an integer n, such
that only every nth call to TaskRunner.step() results in the co-routine
being advanced. We'll be able to use this to selectively slow down
polling of resources where and when we know it doesn't make sense to
poll every second.
Change-Id: Ifc6303524be8e4 779055467602790 27886833617
Related-Bug: #1549219