Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Timers are still not canceled if the condition is resolved

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

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

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

Từ ngày 25/8/2026.

Đánh giá

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

Mô tả

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

Ngôn ngữ chính
Java
Star
434
Fork
252
Merge trung bình
6 ngày 5 giờ
Pull request đã merge (30 ngày)
25

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.