fix: workflow cron bug #316

This commit is contained in:
Echo009 2022-02-11 13:04:13 +08:00
parent 5791b43ac6
commit d87c358743

View File

@ -278,7 +278,7 @@ public class PowerScheduleService {
if (nextTriggerTime == null) {
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 {
updateEntity.setNextTriggerTime(nextTriggerTime.getTime());
}