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

Refactor TaskPoller.PollAndProcessWorkflowTask #4903

Merged
merged 15 commits into from
Sep 26, 2023
Merged

Conversation

dnr
Copy link
Member

@dnr dnr commented Sep 26, 2023

What changed?

  • Refactored PollAndProcessWorkflowTask and all variations to use an options pattern.
  • Added WithNoDumpCommands to disable printing commands.

Why?

  • The stack of variations was getting annoying.
  • And I wanted to add WithNoDumpCommands to make TestTransientWorkflowTaskHistorySize less flaky.

How did you test it?
is tests

@dnr dnr requested a review from a team as a code owner September 26, 2023 17:39
Copy link
Contributor

@MichaelSnowden MichaelSnowden left a comment

Choose a reason for hiding this comment

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

This is a massive improvement. Thanks!

@tdeebswihart
Copy link
Contributor

I love that options pattern

@dnr dnr merged commit b1e553e into temporalio:main Sep 26, 2023
9 of 10 checks passed
@dnr dnr deleted the taskpoller1 branch September 26, 2023 20:17
rodrigozhou pushed a commit that referenced this pull request Oct 6, 2023
**What changed?**
- Refactored PollAndProcessWorkflowTask and all variations to use an
options pattern.
- Added WithNoDumpCommands to disable printing commands.

**Why?**
- The stack of variations was getting annoying.
- And I wanted to add WithNoDumpCommands to make
TestTransientWorkflowTaskHistorySize less flaky.

**How did you test it?**
is tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants