Skip to content

Add min-throughput-per-hour option for throughput_stress#232

Merged
THardy98 merged 3 commits intomainfrom
add-min-wfs-completed
Oct 20, 2025
Merged

Add min-throughput-per-hour option for throughput_stress#232
THardy98 merged 3 commits intomainfrom
add-min-wfs-completed

Conversation

@THardy98
Copy link
Copy Markdown
Contributor

@THardy98 THardy98 commented Oct 20, 2025

What was changed

Added a min-throughput-per-hour option for throughput_stress This can be used as criteria to determine whether a scenario succeeds or not.

For example, expecting 'x' number of workflows to completed within a certain amount of time.

Why?

Provides the ability to run throughput_stress with work-based criteria.

@THardy98 THardy98 changed the title Add --min-workflows-completed flag configured in throughput_stress Add --min-throughput-per-hour flag configured in throughput_stress Oct 20, 2025
@THardy98 THardy98 marked this pull request as ready for review October 20, 2025 16:24
@THardy98 THardy98 requested a review from a team as a code owner October 20, 2025 16:24
Comment thread cmd/cli/run_scenario.go Outdated
Comment on lines +89 to +90
"Minimum workflow throughput required (workflows/hour, default: 0, disabled). "+
"Only scenarios that implement this check will enforce it (currently: throughput_stress)")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should probably be added as a scenario specific flag (at least for now) -- see the flag consts at the top of throughputstress

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure - figured it might be useful to generally have and noop on other scenarios, don't mind either way

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, I agree if/when we add it to others.

@THardy98 THardy98 changed the title Add --min-throughput-per-hour flag configured in throughput_stress Add min-throughput-per-hour option for throughput_stress Oct 20, 2025
@THardy98 THardy98 requested a review from Sushisource October 20, 2025 20:54
Copy link
Copy Markdown
Collaborator

@stephanos stephanos left a comment

Choose a reason for hiding this comment

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

LGTM.

I was deliberating whether a test case in throughput_stress_test.go would be needed, but it seems pretty straight-forward.

@THardy98 THardy98 merged commit a87934a into main Oct 20, 2025
52 of 53 checks passed
@THardy98 THardy98 deleted the add-min-wfs-completed branch October 20, 2025 23:24
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.

3 participants