Skip to content

Commit

Permalink
#254 added active status to runOnce task
Browse files Browse the repository at this point in the history
  • Loading branch information
Vintila Florentin Ovidiu authored and Vintila Florentin Ovidiu committed Nov 28, 2022
1 parent 6637727 commit 3704c16
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ public WorkflowSchedule createSchedule(final WorkflowSchedule schedule) {
Boolean enableJob = false;
if (WorkflowScheduleStatus.active.equals(schedule.getStatus()) && wfEntity.getTriggers().getScheduler().getEnable()) {
scheduleEntity.setStatus(WorkflowScheduleStatus.trigger_disabled);
if (WorkflowScheduleType.runOnce.equals(scheduleEntity.getType()){
scheduleEntity.setStatus(WorkflowScheduleStatus.active);
}
enableJob = true;
}
workflowScheduleRepository.saveSchedule(scheduleEntity);
Expand Down

0 comments on commit 3704c16

Please sign in to comment.