forked from elastic/rally
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we have initialized the schedule eagerly when it was created. Among the state of the schedule is the point in time when it was started. However, as the schedule is not immediately executed after creation, it is possible that the start timestamp is slightly off. This is usually not a problem in practice but may cause test failures where we use very short-lived schedules (one second in total). With this commit we wrap the schedule (which is a generator) in a handle. This handle is passed to the executor which can then lazily initialize the schedule so the timestamp matches exactly the point in time when the schedule is executed. Closes elastic#600 Relates elastic#801
- Loading branch information
1 parent
5f49dbc
commit 0aee2cf
Showing
2 changed files
with
91 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters