[Fix](Job)Fix One-Time type JOB parameter verification error (#30779)
This commit is contained in:
@ -92,6 +92,9 @@ public class JobExecutionConfiguration {
|
||||
if (timerDefinition.getStartTimeMs() == null) {
|
||||
throw new IllegalArgumentException("startTimeMs cannot be null");
|
||||
}
|
||||
if (isImmediate()) {
|
||||
return;
|
||||
}
|
||||
if (timerDefinition.getStartTimeMs() < System.currentTimeMillis()) {
|
||||
throw new IllegalArgumentException("startTimeMs cannot be less than current time");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user