aglinxinyuan opened a new issue, #9499:
URL: https://github.com/apache/texera/issues/9499

   ### 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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [I] Loop condition erro... aglinxinyuan (via GitHub) via notifications

Reply via email to