Loop condition errors can leave partial results marked Completed

Đang mở
#9,499 1 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

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

Từ ngày 16/11/2026.

Đánh giá

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

Mô tả

What happened?

Loop End evaluates its condition after sending port_completed for its output ports. Region completion is port-based, so an undefined name in the condition can leave the UI showing Completed with partial results, even though the console reports a NameError.

Before: port completion → condition raises → partial results shown as Completed.
After: validate the condition before completion notifications; an error keeps the region incomplete.

How to reproduce?
  1. Run a loop with a valid body and update expression.
  2. Set Loop End's condition to reference an undefined variable.
  3. Observe the console error and the workflow's Completed status after the first iteration.
Version/Branch

1.4.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

b9d6f11ae99896520bdf1ccabed1de72adac1c70 (PR #9498; unchanged Loop End code from main).

What browsers are you seeing the problem on?

Chrome

Relevant log output

NameError: name 'score' is not defined, followed by a Completed workflow state with only the first iteration's result.

Ngôn ngữ chính
Scala
Star
333
Fork
202
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
185

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 apache/texera

Tất cả issue của apache/texera

Issue tương tự

Thêm issue về Scala

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.