Copilot commented on code in PR #8581:
URL: https://github.com/apache/texera/pull/8581#discussion_r4066139004


##########
frontend/src/app/workspace/service/execute-workflow/execute-workflow.service.ts:
##########
@@ -383,6 +444,8 @@ export class ExecuteWorkflowService {
     this.currentState = {
       state: ExecutionState.Uninitialized,
     };
+    // Otherwise the next workflow's menu opens showing the previous run's 
time.
+    this.anchorDuration(0, false);

Review Comment:
   `resetExecutionAndWorkers()` does not call `resetExecutionState()`; it only 
calls `updateExecutionState()`, which never resets this new duration anchor. 
Consequently, leaving a completed workflow preserves its final duration, and 
leaving a running workflow also leaves `durationTicker` active, so the next 
workflow replays an old (possibly still increasing) clock. Reset the anchor 
from the session-reset path as well and cover `resetExecutionAndWorkers()` with 
a nonzero/running duration.



-- 
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]

Reply via email to