[Bug] Python: replayed Local Activity timeout causes NDE (TimeoutError not wrapped in ActivityError)
Mantenedores costumam responder em até 1 dia
@mjameswh já está trabalhando nisso.
Desde 2/12/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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
- Linguagem predominante
- Python
- Estrelas
- 1.3k
- Forks
- 305
- Merge médio
- 3d 23h
- PRs com merge (30d)
- 44
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de temporalio/sdk-python
-
[Bug] Catching the ValueError from upsert_search_attributes (naive datetime) still leaves a workflow stuck retrying its taskTalvez já em andamento @VegetarianOrc assumiu hoje. Abertasdk-python
temporalio/sdk-python#2200 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[Bug] workflow_streams: subscribe() raises RPCError when a publish signal lands during the continue-as-new workflow taskTalvez já em andamento @feiiiiii5 assumiu há 5 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
temporalio/sdk-python#2170 ·
Mantenedores costumam responder em até 1 dia
-
[Bug] Deadlock interruption can leak CPython's import lock and freeze the worker (still on Python 3.13/3.14)Talvez já em andamento @tconley1428 assumiu há 21 dias. Abertasdk-python
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
temporalio/sdk-python#2115 ·
Mantenedores costumam responder em até 1 dia
-
Support custom peer identity verification while retaining standard TLS authenticationTalvez já em andamento @dzsquared assumiu há 23 dias. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
temporalio/sdk-python#2106 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Cloud CI Skips Nexus TestsTalvez livre de novo @tconley1428 assumiu há 114 dias e não há nenhum pull request aberto. Aberta
temporalio/sdk-python#1704 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de temporalio/sdk-python
Issues semelhantes
-
area:print-dispatch
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 92/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area/geometry good first issue help wanted kind/doc-mismatch severity/4-minor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Apich-Organization/rssn#295 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
-
chore claimed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
schuyler/corvidae#1424 · 2 comentários ·
Mantenedores costumam responder em até 1 dia