Fix graceful shutdown of the shared worker-command poller

Aperta
#3,234 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@yuandrew ci sta già lavorando.

Dal 24/11/2026.

  • #3235 di @yuandrew — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

sdk-java

Expected Behavior

Keep the command poller running until the regular workers finish draining. Then stop issuing new polls and send ShutdownWorker with the command queue name, worker instance key, and Nexus task queue type so the server can complete the outstanding poll.

shutdownNow() and namespaces without graceful poll completion should still interrupt the command poll promptly.

Actual Behavior

WorkerFactory.shutdown() interrupts the shared worker-command poller as soon as shutdown starts, even when the namespace supports workerPollCompleteOnShutdown. This cancels the in-flight PollNexusTaskQueue RPC and can prevent activities that are still draining from receiving cancellation commands.

The Go SDK addressed the same problem in temporalio/sdk-go#2907.

Lingua principale
Java
Stelle
447
Fork
278
Merge medio
3g 22h
PR unite (30g)
28

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.