Skip to content

Commit

Permalink
FINERACT-1971: Fix (disabled) job scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsaghy committed Oct 30, 2023
1 parent 0abb60c commit 98b3799
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ public void onApplicationEvent(@SuppressWarnings("unused") ContextClosedEvent ev
@Override
public void scheduleJob(final ScheduledJobDetail scheduledJobDetails) {
try {
final JobDetail jobDetail = createJobDetail(scheduledJobDetails, Collections.emptySet());
scheduledJobDetails.setJobKey(getJobKeyAsString(jobDetail.getKey()));
if (!scheduledJobDetails.isActiveSchedular()) {
scheduledJobDetails.setNextRunTime(null);
scheduledJobDetails.setCurrentlyRunning(false);
return;
}
final JobDetail jobDetail = createJobDetail(scheduledJobDetails, Collections.emptySet());
scheduledJobDetails.setJobKey(getJobKeyAsString(jobDetail.getKey()));

final Trigger trigger = createTrigger(scheduledJobDetails, jobDetail);
final Scheduler scheduler = getScheduler(scheduledJobDetails);
Expand Down

0 comments on commit 98b3799

Please sign in to comment.