Loop condition errors can leave partial results marked Completed

Offen
#9,499 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@aglinxinyuan arbeitet bereits daran.

Seit 16.11.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

Vorherrschende Sprache
Scala
Sterne
333
Forks
202
Ø Merge
3 T. 11 Std.
Gemergte PRs (30 T.)
185

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus apache/texera

Alle Issues in apache/texera

Ähnliche Issues

Weitere Issues zu Scala

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.