mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: workflow cron bug #316
This commit is contained in:
parent
5791b43ac6
commit
d87c358743
@ -278,7 +278,7 @@ public class PowerScheduleService {
|
|||||||
|
|
||||||
if (nextTriggerTime == null) {
|
if (nextTriggerTime == null) {
|
||||||
log.warn("[Workflow-{}] this workflow won't be scheduled anymore, system will set the status to DISABLE!", wfInfo.getId());
|
log.warn("[Workflow-{}] this workflow won't be scheduled anymore, system will set the status to DISABLE!", wfInfo.getId());
|
||||||
wfInfo.setStatus(SwitchableStatus.DISABLE.getV());
|
updateEntity.setStatus(SwitchableStatus.DISABLE.getV());
|
||||||
} else {
|
} else {
|
||||||
updateEntity.setNextTriggerTime(nextTriggerTime.getTime());
|
updateEntity.setNextTriggerTime(nextTriggerTime.getTime());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user