style: limit durabletask warnings for timers
@manduinca 已经在做这个了。
开始于 2026年9月13日。
评估
这个 Issue 还没有评估数据。
描述
Expected Behavior
I have a workflow with external events, I have a timer configured for a timeout as seen below. I could not confirm if this is the root of all of the logs that I got, but my expected behavior is that if an unexpected timer is fired to not spam my logs.
wf_completion_event = ctx.wait_for_external_event(event_name)
timeout_event = ctx.create_timer(timedelta(hours=24))
winner = yield when_any([wf_completion_event, timeout_event])
Actual Behavior
I do not have the steps to reproduce this issue, but the couple of times it happened were after an activity had retried. My logs are spammed with +1k lines of warnings (snippet below) from a single request. Not sure if this is due to the timer I configured or something else.
2026-04-09 15:33:35.150 durabletask-worker WARNING: ac1d3d89-d79b-4d07-b86e-1f9d7d636081:0001: Ignoring unexpected timerFired event with ID = 5.
2026-04-09 15:33:35,150 - durabletask-worker - WARNING - ac1d3d89-d79b-4d07-b86e-1f9d7d636081:0001: Ignoring unexpected timerFired event with ID = 5.
2026-04-09 15:33:35.150 durabletask-worker WARNING: ac1d3d89-d79b-4d07-b86e-1f9d7d636081:0001: Ignoring unexpected timerFired event with ID = 5.
2026-04-09 15:33:35,150 - durabletask-worker - WARNING - ac1d3d89-d79b-4d07-b86e-1f9d7d636081:0001: Ignoring unexpected timerFired event with ID = 5.
2026-04-09 15:33:35.150 durabletask-worker WARNING: ac1d3d89-d79b-4d07-b86e-1f9d7d636081:0001: Ignoring unexpected timerFired event with ID = 5.
2026-04-09 15:33:35,150 - durabletask-worker - WARNING - ac1d3d89-d79b-4d07-b86e-1f9d7d636081:0001: Ignoring unexpected timerFired event with ID = 5.
acceptance criteria:
- this log is only logged once and is not contained within a loop that can spam our end users
Steps to Reproduce the Problem
I do not know how to reproduce the error, apologies!
Release Note
RELEASE NOTE:
- 主要语言
- Python
- 星标
- 272
- 派生
- 152
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 4
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dapr/python-sdk 的其他 Issue
-
dapr-ext-workflow good first issue kind/enhancement P2
难度 2/5 1-2 天 新手友好度 72/100
dapr/python-sdk#853 · 4 条评论 ·
-
feature-request
难度 3/5 1-2 天 新手友好度 76/100
dapr/python-sdk#1214 ·
-
dapr-ext-workflow kind/enhancement
难度 3/5 1-2 天 新手友好度 78/100
dapr/python-sdk#1213 ·
-
难度 3/5 1-2 天 新手友好度 76/100
dapr/python-sdk#1200 ·
-
dapr-ext-workflow kind/enhancement
难度 3/5 1-2 天 新手友好度 58/100
dapr/python-sdk#1188 ·
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 70/100
huggingface/Repo2RLEnv#163 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
难度 2/5 1-3 小时 新手友好度 70/100
NousResearch/hermes-agent#121143 ·