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

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

                Author: ASF GitHub Bot
            Created on: 20/Jun/23 23:37
            Start Date: 20/Jun/23 23:37
    Worklog Time Spent: 10m 
      Work Description: phet commented on code in PR #3707:
URL: https://github.com/apache/gobblin/pull/3707#discussion_r1236004762


##########
gobblin-runtime/src/main/java/org/apache/gobblin/scheduler/JobScheduler.java:
##########
@@ -398,7 +398,8 @@ public void scheduleJob(Properties jobProps, JobListener 
jobListener, Map<String
       // Schedule the Quartz job with a trigger built from the job 
configuration
       Trigger trigger = createTriggerForJob(job.getKey(), jobProps);
       this.scheduler.getScheduler().scheduleJob(job, trigger);
-      LOG.info(String.format("Scheduled job %s. Next run: %s.", job.getKey(), 
trigger.getNextFireTime()));
+      LOG.info("Scheduler trigger validation: [flowName: {} flowGroup: {}] - 
nextTriggerTime: {} - "
+          + "Job scheduled", job.getKey().getName(), job.getKey().getGroup(), 
trigger.getNextFireTime());

Review Comment:
   nit: it says "trigger validation", but did it?  seems more like tracing.



##########
gobblin-runtime/src/main/java/org/apache/gobblin/scheduler/JobScheduler.java:
##########
@@ -612,7 +613,10 @@ public void executeImpl(JobExecutionContext context)
       long triggerTimestampMillis = trigger.getPreviousFireTime().getTime();
       
jobProps.setProperty(ConfigurationKeys.SCHEDULER_EVENT_TO_TRIGGER_TIMESTAMP_MILLIS_KEY,
           String.valueOf(triggerTimestampMillis));
-
+      LOG.info("Scheduler trigger validation: [flowName: {} flowGroup: {}] - 
triggerTime: {} nextTriggerTime: {} - "
+              + "Job triggered by scheduler",

Review Comment:
   the other one said "job scheduled" and this one says "job triggered by 
scheduler".
   
   is this one not also being scheduled?  if it is, suggest:
   "job newly scheduled"
   "job re-scheduled"





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

    Worklog Id:     (was: 866586)
    Time Spent: 20m  (was: 10m)

> Add logs to validate scheduled job triggers
> -------------------------------------------
>
>                 Key: GOBBLIN-1846
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1846
>             Project: Apache Gobblin
>          Issue Type: Bug
>          Components: gobblin-service
>            Reporter: Urmi Mustafi
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Add logging in 3 critical places: newly scheduled jobs (or updated ones), 
> each trigger of a new job, and when jobs are unscheduled so we can track 
> every expected trigger of a scheduled job occurs. We will use the three types 
> of logs mentioned to ensure there are no missed scheduling events due to host 
> downtime with a simple analysis of the logs. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to