[Bug] Python: replayed Local Activity timeout causes NDE (TimeoutError not wrapped in ActivityError)
維護者通常 1 天內回覆
@mjameswh 已經在處理了。
開始於 2026年12月2日。
評估
這個 Issue 還沒有評估資料。
描述
Description:
The workflow runs a Local Activity that times out (start_to_close_timeout, retries exhausted), catches ActivityError, and calls workflow.sleep() in the except.
try:
# Attempt 1 times out; its 10s backoff is over the 5s threshold, so the worker records a
# failure marker and a backoff timer. Attempt 2 times out and the error reaches this code.
await workflow.execute_local_activity(
slow_check,
start_to_close_timeout=timedelta(seconds=5),
retry_policy=RetryPolicy(initial_interval=timedelta(seconds=10), maximum_attempts=2),
local_retry_threshold=timedelta(seconds=5),
)
except ActivityError:
await workflow.sleep(timedelta(seconds=1), summary="sleep in except ActivityError")
# Fails this workflow task so the worker evicts the run; the retry replays the whole history.
raise RuntimeError("injected bug")
After the run is evicted and its history is replayed, the worker fails with [TMPRL1100]
Reproduced on version 1.34.0 and 1.37.0.
I've attached the reproduction.
_la_timeout_nde.zip
- 主要語言
- Python
- 星號
- 1.3k
- 分支
- 305
- 平均合併
- 3 天 23 小時
- 30 天內合併 PR
- 44
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
temporalio/sdk-python 的其他 Issue
-
[Bug] Catching the ValueError from upsert_search_attributes (naive datetime) still leaves a workflow stuck retrying its task可能已有人在做 @VegetarianOrc 今天認領。 未關閉sdk-python
temporalio/sdk-python#2200 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[Bug] workflow_streams: subscribe() raises RPCError when a publish signal lands during the continue-as-new workflow task可能已有人在做 @feiiiiii5 於 5 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 52/100
temporalio/sdk-python#2170 ·
維護者通常 1 天內回覆
-
[Bug] Deadlock interruption can leak CPython's import lock and freeze the worker (still on Python 3.13/3.14)可能已有人在做 @tconley1428 於 21 天前認領。 未關閉sdk-python
難度 5/5 一週以上 新手友好度 25/100
temporalio/sdk-python#2115 ·
維護者通常 1 天內回覆
-
Support custom peer identity verification while retaining standard TLS authentication可能已有人在做 @dzsquared 於 23 天前認領。 未關閉
難度 5/5 一週以上 新手友好度 35/100
temporalio/sdk-python#2106 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Cloud CI Skips Nexus Tests可能重新可做 @tconley1428 於 114 天前認領,目前沒有進行中的 PR。 未關閉
temporalio/sdk-python#1704 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 temporalio/sdk-python 的全部 Issue
相似的 Issue
-
area:print-dispatch
難度 2/5 1-3 小時 新手友好度 92/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
area/geometry good first issue help wanted kind/doc-mismatch severity/4-minor
難度 2/5 1-3 小時 新手友好度 68/100
Apich-Organization/rssn#295 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
-
chore claimed
難度 2/5 1-3 小時 新手友好度 72/100
schuyler/corvidae#1424 · 2 則留言 ·
維護者通常 1 天內回覆