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

[PH] Performance harness graceful shutdown #237

Conversation

ClaytonCalabrese
Copy link
Contributor

  • Causes trx_generators to be killed upon sigint.
  • Outputs to console upon sigint.
  • Reports in JSON whether a run was canceled early.
  • Moves analysis to finally, so it is still run when sigint is invoked.

…of finally, so that even early exits get analyzed, print new line in json to indicate if run exited early or not
if completedRun:
assert transactionsSent == data.totalTransactions , f"Error: Transactions received: {data.totalTransactions} did not match expected total: {transactionsSent}"
else:
os.system("pkill trx_generator")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a candidate for replacing with explicit subprocess control, but we'll wait on that until the regression test harness has support for it.

@ClaytonCalabrese ClaytonCalabrese merged commit aa13c29 into feature_performance_harness Sep 27, 2022
@ClaytonCalabrese ClaytonCalabrese deleted the performance_harness_graceful_shutdown branch September 27, 2022 15:06
@oschwaldp-oci oschwaldp-oci added the OCI Work exclusive to OCI team label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants