lib/rocket_job/plugins/processing_window.rb in rocketjob-3.4.3 vs lib/rocket_job/plugins/processing_window.rb in rocketjob-3.5.0

- old
+ new

@@ -5,11 +5,11 @@ # Ensure that a job will only run between certain hours of the day, regardless of when it was # created/enqueued. Useful for creating a job now that should only be processed later during a # specific time window. If the time window is already active the job is able to be processed # immediately. # - # Example: Process this job on Monday’s between 8am and 10am. + # Example: Process this job on Monday's between 8am and 10am. # # Example: Run this job on the 1st of every month from midnight for the entire day. # # Since the cron schedule supports time zones it is easy to setup jobs to run at UTC or any other time zone. # @@ -68,10 +68,10 @@ # Only process this job if it is still in its processing window def rocket_job_processing_window_check return if rocket_job_processing_window_active? logger.warn("Processing window closed before job was processed. Job is re-scheduled to run at: #{rocket_job_processing_schedule.next_time}") self.worker_name ||= 'inline' - self.requeue!(worker_name) + requeue!(worker_name) end def rocket_job_processing_window_set_run_at self.run_at = rocket_job_processing_schedule.next_time unless rocket_job_processing_window_active? end