Loop condition errors can leave partial results marked Completed

Aperta
#9,499 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@aglinxinyuan ci sta già lavorando.

Dal 16/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Scala
Stelle
333
Fork
202
Merge medio
3g 11h
PR unite (30g)
185

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

Tutte le issue di apache/texera

Issue simili

Altre issue su Scala

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.