Module: RocketJob::Plugins::Job::StateMachine

Extended by:
ActiveSupport::Concern
Included in:
Job
Defined in:
lib/rocket_job/plugins/job/state_machine.rb

Overview

State machine for RocketJob::Job

Instance Method Summary collapse

Instance Method Details

#pausable?Boolean

All regular jobs can be paused or resumed whilst queued.

Returns:

  • (Boolean)


115
116
117
# File 'lib/rocket_job/plugins/job/state_machine.rb', line 115

def pausable?
  queued? || paused? || pausable
end