Skip to content

Conversation

@stephanos
Copy link
Collaborator

@stephanos stephanos commented Oct 9, 2025

What was changed

WISOTT

Why?

When running a scenario it can happen that transient failures lead to an incomplete scenario run and on retry the scenario will then fail because workflows were already created. It's not always possible here to use a new/clean task queue; in those cases, this new flag allows to skip over these errors.

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?


// When resuming, it can happen that the workflow for the current iteration already exists since the snapshot
// was not up-to-date. In that case, we just skip this iteration and move on.
info.Configuration.HandleExecuteError = func(ctx context.Context, run *loadgen.Run, err error) error {
Copy link
Collaborator Author

@stephanos stephanos Oct 9, 2025

Choose a reason for hiding this comment

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

This was the only use case for HandleExecuteError; we could consider removing it entirely until there's a use case again?

@stephanos stephanos marked this pull request as ready for review October 9, 2025 20:11
@stephanos stephanos requested a review from a team as a code owner October 9, 2025 20:11
@stephanos stephanos requested a review from Sushisource October 9, 2025 20:11
scenarioOptions []string
timeout time.Duration
doNotRegisterSearchAttributes bool
ignoreAlreadyStarted bool
Copy link
Member

Choose a reason for hiding this comment

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

Where does this actually get read?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup, that part somehow got lost. Added!

@stephanos stephanos merged commit f664025 into main Oct 14, 2025
28 checks passed
@stephanos stephanos deleted the prefix branch October 14, 2025 23:27
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