app/lib/actions/recurring_action.rb in foreman-tasks-0.15.6 vs app/lib/actions/recurring_action.rb in foreman-tasks-0.15.7
- old
+ new
@@ -15,10 +15,11 @@
request_id = ::Logging.mdc['request']
::Logging.mdc['request'] = SecureRandom.uuid
if execution_plan.delay_record && recurring_logic_task_group
args = execution_plan.delay_record.args
logic = recurring_logic_task_group.recurring_logic
- logic.trigger_repeat_after(task.start_at, self.class, *args)
+ task_start_at = [task.start_at, Time.zone.now].max
+ logic.trigger_repeat_after(task_start_at, self.class, *args)
end
ensure
::Logging.mdc['request'] = request_id
end