arjun4084346 commented on code in PR #4013:
URL: https://github.com/apache/gobblin/pull/4013#discussion_r1702053662


##########
gobblin-runtime/src/main/java/org/apache/gobblin/service/monitoring/FlowStatusGenerator.java:
##########
@@ -41,7 +41,7 @@
 @Slf4j
 public class FlowStatusGenerator {
   public static final List<String> FINISHED_STATUSES = 
Lists.newArrayList(ExecutionStatus.FAILED.name(),
-      ExecutionStatus.COMPLETE.name(), ExecutionStatus.CANCELLED.name());
+      ExecutionStatus.COMPLETE.name(), ExecutionStatus.CANCELLED.name(), 
ExecutionStatus.PENDING_RETRY.name());

Review Comment:
   The code is like 
   ```
   if (jobStatus.isShouldRetry()) {
         XXX
       } else if (!dagManagementStateStore.hasRunningJobs(getDagId())) {
         YYY
       }
   ```
   so both code parts do not collide. Also it is kinda ok for `hasRunningJobs` 
to return `true` when status is PENDING_RETRY, isn't it?



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