Skip to content

Conversation

@shuprime
Copy link

@shuprime shuprime commented Jan 7, 2026

What changed?

  • Implemented decision task timeout enforcement with max retry attempts in History service
  • Added logic in timer_active_task_executor.go to check DecisionAttempt against DecisionRetryMaxAttempts

Why?

How did you test it?

  • Local testing
  • Unit testing
  • integration testing

Release notes

Documentation Changes

@shuprime shuprime changed the title Feat/cap decision task failure retries feat(history): cap decision task failure retries Jan 7, 2026
@shuprime shuprime force-pushed the feat/cap-decision-task-failure-retries branch from a531a33 to d35e786 Compare January 8, 2026 20:59
@shuprime shuprime force-pushed the feat/cap-decision-task-failure-retries branch from d35e786 to f078db7 Compare January 8, 2026 21:00
Signed-off-by: shuprime <[email protected]>

poller.PollAndProcessDecisionTask(false, true)
s.Logger.Info("Waiting for decision task timeout (attempt 0)")
time.Sleep(2 * time.Second)
Copy link
Member

Choose a reason for hiding this comment

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

These Sleep calls shouldn't be necessary, and if they are, it often indicates that the test is or will become flakey since timing can vary quite a bit.

We should be able to:

  • Poll for a decision task, then don't respond (letting it time out).
  • Poll for a second decision task, then don't respond (letting it time out)
    • This will only have a task dispatched to it after the first one times out, so it's fine to start polling for the task before it actually happens.
  • We can use GetWorkflowExecutionHistory to long poll for the workflow to complete.

These are all very minor changes from what you have, overall this approach is great.

Signed-off-by: shuprime <[email protected]>
@shuprime shuprime force-pushed the feat/cap-decision-task-failure-retries branch from 3c2dddc to 5b45ffc Compare January 10, 2026 15:35
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