Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Log each unexpected history event once per execution - #1210

Open
manduinca wants to merge 1 commit into
dapr:mainfrom
manduinca:fix/unexpected-event-log-spam
Open

Log each unexpected history event once per execution#1210
manduinca wants to merge 1 commit into
dapr:mainfrom
manduinca:fix/unexpected-event-log-spam

Conversation

@manduinca

Copy link
Copy Markdown

Description

A single work item can carry the same unexpected history event many times, and the worker logged every occurrence. That is where the thousand-plus identical Ignoring unexpected timerFired event with ID = 5 lines in #980 come from.

The five places that reported an unexpected event (timerFired, taskCompleted, taskFailed, childWorkflowInstanceCompleted, childWorkflowInstanceFailed) now go through one helper that remembers the (event, id) pairs already reported on the orchestration context and skips the repeats. A different id still gets its own line, replays stay silent as before, and since the context is rebuilt for every execute(), nothing accumulates across work items.

The new test feeds three timerFired events for unknown timers (5, 5, 7) and expects exactly two warnings; it fails on main with three.

Issue reference

Please reference the issue this PR will close: #980

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

A work item can carry the same unexpected event many times, and every
occurrence was logged, filling the caller's logs with identical warnings.
Report each (event, id) pair once per execution instead.

Signed-off-by: Jean Pierre Mandujano G. <[email protected]>
@manduinca
manduinca requested review from a team as code owners September 13, 2026 20:11
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.

style: limit durabletask warnings for timers

1 participant