Fix graceful shutdown of the shared worker-command poller

Đang mở
#3,234 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@yuandrew đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #3235 của @yuandrew — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Java
Star
447
Fork
278
Merge trung bình
3 ngày 22 giờ
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temporalio/sdk-java

Tất cả issue của temporalio/sdk-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.