lib/rocket_job/plugins/job/state_machine.rb in rocketjob-5.0.0.beta3 vs lib/rocket_job/plugins/job/state_machine.rb in rocketjob-5.0.0.beta4

- old
+ new

@@ -109,9 +109,14 @@ def self.resume_all paused.each(&:resume!) end end + # All regular jobs can be paused or resumed whilst queued. + def self.pausable? + queued? || paused? || pausable + end + private # Sets the exception child object for this job based on the # supplied Exception instance or message def rocket_job_set_exception(worker_name = nil, exc_or_message = nil)