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

Let the runner determine progress #789

Merged
merged 5 commits into from
Oct 14, 2019
Merged

Conversation

danielmitterdorfer
Copy link
Member

With this commit we add the ability to have runners determine progress.
Usually the runner is just responsible for executing requests and the
parameter source is determining completion. However, there are cases,
like snapshot/restore or replication where we need to determine progress
based on a request against Elasticsearch.

With this commit we add the ability to have runners determine progress.
Usually the runner is just responsible for executing requests and the
parameter source is determining completion. However, there are cases,
like snapshot/restore or replication where we need to determine progress
based on a request against Elasticsearch.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc. labels Oct 10, 2019
@danielmitterdorfer danielmitterdorfer added this to the 1.4.0 milestone Oct 10, 2019
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

Left a nit that doesn't require further reviews.

def __init__(self, runnable, name, context_manager_enabled=False):
def _single_cluster_runner(runnable, name, context_manager_enabled=False):
# only pass the default ES client
delegate = DelegatingRunner(runnable, name, lambda es: es["default"], context_manager_enabled)
Copy link
Contributor

Choose a reason for hiding this comment

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

Clever idea!

# The runner will determine progress
"size": None
},
param_source="driver-test-param-source"),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: indentation seems a bit wonky here

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Addressed in b1c5b72.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants