Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Timers are still not canceled if the condition is resolved

Chiusa
#3,012 1 commento 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@maciejdudko ci sta già lavorando.

Dal 25/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Expected Behavior

When an await with a timer resolves via the condition, the timer should be canceled.

Actual Behavior

The timer is not canceled and leaks. The workflow history is confusing.

This was already fixed behind a flag in PR https://github.com/temporalio/sdk-java/pull/2799 but the flag was never subsequently enabled by switching to tryUseSdkFlag.:

https://github.com/temporalio/sdk-java/blob/7cf35351b27a3a7af17b4fadd4d281893a96580f/temporal-sdk/src/main/java/io/temporal/internal/sync/SyncWorkflowContext.java#L1330-L1333

Also related to this is: a timer is created even if the condition is immediately satisfied at call time. See this comment: https://github.com/temporalio/sdk-java/issues/2312#issuecomment-2559296304

Lingua principale
Java
Stelle
434
Fork
252
Merge medio
3g 15m
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temporalio/sdk-java

Tutte le issue di temporalio/sdk-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.