lib/rocket_job/plugins/cron.rb in rocketjob-3.4.1 vs lib/rocket_job/plugins/cron.rb in rocketjob-3.4.2

- old
+ new

@@ -157,10 +157,10 @@ # - clear out the `cron_schedule` so this instance will not schedule another instance to run on completion. # Overrides: RocketJob::Plugins::Restart#rocket_job_restart_abort def rocket_job_restart_abort return unless cron_schedule rocket_job_restart_new_instance - self.cron_schedule = nil + update_attribute(:cron_schedule, nil) end end # Returns [Time] at which this job was intended to run at. #