Browse Source

[Fix#12231][scheduler-plugin] fix the bug which some scheduled tasks are not triggered on time (#12233)

Co-authored-by: fan.wang <fan.wang@jiduauto.com>
3.2.0-release
Ivan 2 years ago committed by GitHub
parent
commit
d9ac1fa0f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-scheduler-plugin/dolphinscheduler-scheduler-quartz/src/main/java/org/apache/dolphinscheduler/scheduler/quartz/QuartzScheduler.java

2
dolphinscheduler-scheduler-plugin/dolphinscheduler-scheduler-quartz/src/main/java/org/apache/dolphinscheduler/scheduler/quartz/QuartzScheduler.java

@ -111,7 +111,7 @@ public class QuartzScheduler implements SchedulerApi {
.endAt(endDate) .endAt(endDate)
.withSchedule( .withSchedule(
cronSchedule(cronExpression) cronSchedule(cronExpression)
.withMisfireHandlingInstructionDoNothing() .withMisfireHandlingInstructionFireAndProceed()
.inTimeZone(DateUtils.getTimezone(timezoneId)) .inTimeZone(DateUtils.getTimezone(timezoneId))
) )
.forJob(jobDetail).build(); .forJob(jobDetail).build();

Loading…
Cancel
Save