[Bug] Python: replayed Local Activity timeout causes NDE (TimeoutError not wrapped in ActivityError)

オープン
#2,183 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@mjameswh がすでに取り組んでいます。

2026年12月2日 から。

評価

この issue はまだ評価されていません。

説明

bug sdk-python

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時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

temporalio/sdk-python のほかの issue

temporalio/sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。