lib/rocket_job/plugins/job/throttle.rb in rocketjob-5.2.0 vs lib/rocket_job/plugins/job/throttle.rb in rocketjob-5.3.0

- old
+ new

@@ -5,10 +5,10 @@ module Job # Rocket Job Throttling Framework. # # Example: # # Do not run this job when the MySQL slave delay exceeds 5 minutes. - # class MyJob < RocketJob + # class MyJob < RocketJob::Job # # Define a custom mysql throttle # # Prevents all jobs of this class from running on the current server. # define_throttle :mysql_throttle_exceeded? # # def perform