BePPPower commented on code in PR #22707:
URL: https://github.com/apache/doris/pull/22707#discussion_r1286924123
##########
fe/fe-core/src/main/java/org/apache/doris/scheduler/manager/AsyncJobManager.java:
##########
@@ -156,19 +156,20 @@ private void initAndSchedulerJob(Job job) {
}
private Long findFistExecuteTime(Long currentTimeMs, Long startTimeMs,
Long intervalMs, boolean isCycleJob) {
+ // if job not delay, first execute time is start time
if (startTimeMs != 0L && startTimeMs > currentTimeMs) {
return startTimeMs;
}
- // if it's not cycle job and already delay, next execute time is
current time
- if (!isCycleJob) {
+ // if job already delay, first execute time is current time
+ if (startTimeMs != 0L && startTimeMs < currentTimeMs) {
return currentTimeMs;
}
Review Comment:
ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]