lib/rocket_job/jobs/housekeeping_job.rb in rocketjob-6.0.0.rc3 vs lib/rocket_job/jobs/housekeeping_job.rb in rocketjob-6.0.0
- old
+ new
@@ -25,15 +25,14 @@
# completed_retention: 30.minutes,
# failed_retention: nil
# )
class HousekeepingJob < RocketJob::Job
include RocketJob::Plugins::Cron
- include RocketJob::Plugins::Singleton
- self.priority = 25
- self.description = "Cleans out historical jobs, and zombie servers."
- # Runs every 15 minutes
- self.cron_schedule = "*/15 * * * * UTC"
+ # Runs every 15 minutes on the 15 minute period
+ self.cron_schedule = "0,15,30,45 * * * * UTC"
+ self.description = "Cleans out historical jobs, and zombie servers."
+ self.priority = 25
# Whether to destroy zombie servers automatically
field :destroy_zombies, type: Mongoid::Boolean, default: true, user_editable: true, copy_on_restart: true
# Retention intervals in seconds.