Skip to content

Commit

Permalink
Remove and unschedule jobs on (#14481)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohityadav766 authored Dec 22, 2023
1 parent 79444f4 commit cdddc0c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.quartz.SchedulerException;
import org.quartz.Trigger;
import org.quartz.TriggerBuilder;
import org.quartz.TriggerKey;
import org.quartz.impl.StdSchedulerFactory;

@Slf4j
Expand Down Expand Up @@ -93,6 +94,7 @@ public void deleteScheduledApplication(App app) throws SchedulerException {
JobDetail jobDetail = getJobKey(app.getId());
if (jobDetail != null) {
scheduler.deleteJob(jobDetail.getKey());
scheduler.unscheduleJob(new TriggerKey(app.getId().toString(), APPS_TRIGGER_GROUP));
appJobsKeyMap.remove(app.getId());
}
}
Expand Down

0 comments on commit cdddc0c

Please sign in to comment.