Skip to content

[Backport release-1.18] fix(durabletask): don't let resolved event-wait timers block implicit completion#1771

Open
dapr-bot wants to merge 1 commit into
release-1.18from
backport-1769-to-release-1.18
Open

[Backport release-1.18] fix(durabletask): don't let resolved event-wait timers block implicit completion#1771
dapr-bot wants to merge 1 commit into
release-1.18from
backport-1769-to-release-1.18

Conversation

@dapr-bot

Copy link
Copy Markdown
Collaborator

Backport 625d0f8 from #1769.

… completion (#1769)

When an orchestrator returns without calling ctx.complete(), the executor
auto-completes only if no pending actions remain. Since #1733 every
waitForExternalEvent emits a CreateTimer action, so when the final event
arrives in the same work item as the completion that resumed the
orchestrator, the re-armed wait's timer is still pending when the function
returns — blocking the implicit completion. The workflow stayed RUNNING
until that timer fired: forever, for indefinite waits.

Treat pending timers of already-resolved event waits as obsolete in the
implicit-completion check. All other pending actions block completion as
before.

The regression test reconstructs the failing production history
field-for-field.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
(cherry picked from commit 625d0f8)
@dapr-bot dapr-bot requested review from a team as code owners June 15, 2026 16:34
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.83%. Comparing base (8a22a88) to head (b061a68).

Additional details and impacted files
@@               Coverage Diff               @@
##             release-1.18    #1771   +/-   ##
===============================================
  Coverage           76.83%   76.83%           
  Complexity           2297     2297           
===============================================
  Files                 243      243           
  Lines                7141     7141           
  Branches              745      745           
===============================================
  Hits                 5487     5487           
  Misses               1288     1288           
  Partials              366      366           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants