[ https://issues.apache.org/jira/browse/GOBBLIN-722?focusedWorklogId=222796&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-222796 ]
ASF GitHub Bot logged work on GOBBLIN-722: ------------------------------------------ Author: ASF GitHub Bot Created on: 04/Apr/19 04:06 Start Date: 04/Apr/19 04:06 Worklog Time Spent: 10m Work Description: arjun4084346 commented on pull request #2589: [GOBBLIN-722] Unschedule gaas flow URL: https://github.com/apache/incubator-gobblin/pull/2589#discussion_r272010852 ########## File path: gobblin-runtime/src/main/java/org/apache/gobblin/scheduler/JobScheduler.java ########## @@ -351,8 +351,8 @@ public void scheduleJob(Properties jobProps, JobListener jobListener, Map<String String jobName = jobProps.getProperty(ConfigurationKeys.JOB_NAME_KEY); if (this.scheduledJobs.containsKey(jobName)) { - LOG.warn("Job " + jobName + " has already been scheduled"); - return; + LOG.info("Job " + jobName + " was already scheduled, un-scheduling it now."); + unscheduleJob(jobName); Review comment: because cron-scheduler APIs do not support rescheduling, we have to call cron-scheduler.unschedule first ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 222796) Time Spent: 0.5h (was: 20m) > add option to unschedule a gaas flow > ------------------------------------ > > Key: GOBBLIN-722 > URL: https://issues.apache.org/jira/browse/GOBBLIN-722 > Project: Apache Gobblin > Issue Type: Improvement > Reporter: Arjun Singh Bora > Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)