[ 
https://issues.apache.org/jira/browse/GOBBLIN-847?focusedWorklogId=292317&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-292317
 ]

ASF GitHub Bot logged work on GOBBLIN-847:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Aug/19 22:55
            Start Date: 09/Aug/19 22:55
    Worklog Time Spent: 10m 
      Work Description: arjun4084346 commented on pull request #2702: 
[GOBBLIN-847] Flow level sla
URL: https://github.com/apache/incubator-gobblin/pull/2702#discussion_r312670872
 
 

 ##########
 File path: 
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManager.java
 ##########
 @@ -473,22 +474,20 @@ private void initialize(Dag<JobExecutionPlan> dag)
     /**
      * Proceed the execution of each dag node based on job status.
      */
-    private void pollAndAdvanceDag()
-        throws IOException {
+    private void pollAndAdvanceDag() throws IOException, ExecutionException, 
InterruptedException {
       this.failedDagIdsFinishRunning.clear();
-
       Map<String, Set<DagNode<JobExecutionPlan>>> nextSubmitted = 
Maps.newHashMap();
       List<DagNode<JobExecutionPlan>> nodesToCleanUp = Lists.newArrayList();
+
       for (DagNode<JobExecutionPlan> node: this.jobToDag.keySet()) {
-        long pollStartTime = System.nanoTime();
+        boolean slaKilled = slaKillIfNeeded(node);
+
         JobStatus jobStatus = pollJobStatus(node);
-        Instrumented.updateTimer(this.jobStatusPolledTimer, System.nanoTime() 
- pollStartTime, TimeUnit.NANOSECONDS);
 
 Review comment:
   Moved it inside the method pollJobStatus(). I think that would give a more 
accurate measurement of the poll time; and will also make this method 
pollAndAdvanceDag() cleaner.
 
----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 292317)
    Time Spent: 1h 20m  (was: 1h 10m)

> add a flow level sla in gaas flows
> ----------------------------------
>
>                 Key: GOBBLIN-847
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-847
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Arjun Singh Bora
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> add a flow level sla in gaas flows, because sometimes azkaban jobs may not 
> start and hence send any tracking event, or azkaban maybe down. in all those 
> cases, we might have to kill the job so we can start a new job



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to