NealSun96 commented on a change in pull request #1326:
URL: https://github.com/apache/helix/pull/1326#discussion_r478726579



##########
File path: 
helix-core/src/main/java/org/apache/helix/task/WorkflowDispatcher.java
##########
@@ -84,6 +84,7 @@ public void updateWorkflowStatus(String workflow, 
WorkflowConfig workflowCfg,
     TargetState targetState = workflowCfg.getTargetState();
     if (targetState == TargetState.DELETE) {
       LOG.info("Workflow is marked as deleted " + workflow + " cleaning up the 
workflow context.");
+      updateInflightJobs(workflow, workflowCtx, currentStateOutput, 
bestPossibleOutput);

Review comment:
       All `updateInflightJobs` are making up for a case that wasn't covered 
before: any time a workflow exits this function before inflight jobs are 
handled, the inflight jobs will not be processed and will fallback to the 
legacy pipeline logic. This isn't correct as inflight jobs need to respond to 
workflow states such as TimedOut. Therefore, the new logic is to handle 
inflight jobs before exiting this function. 




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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to