Skip to content

Commit

Permalink
fix: allow user to set job start time after current time
Browse files Browse the repository at this point in the history
  • Loading branch information
gelibo committed Jun 3, 2020
1 parent 684d848 commit d49a9e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/src/main/java/edp/core/utils/QuartzHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public void addJob(ScheduleJob scheduleJob) throws ServerException, SchedulerExc
throw new ServerException("EMPTY job");
}

if (System.currentTimeMillis() < scheduleJob.getStartDate().getTime()
|| System.currentTimeMillis() > scheduleJob.getEndDate().getTime()) {
if (System.currentTimeMillis() > scheduleJob.getEndDate().getTime()) {
Object[] args = {
scheduleJob.getId(),
DateUtils.toyyyyMMddHHmmss(System.currentTimeMillis()),
Expand Down

0 comments on commit d49a9e4

Please sign in to comment.