Class: Threatstack::Jobs::DelayedJob
- Inherits:
-
Object
- Object
- Threatstack::Jobs::DelayedJob
- Defined in:
- lib/jobs/delayed_job.rb
Instance Method Summary collapse
- #exec_count ⇒ Object
-
#initialize(name_or_logger, initial_delay = 0, *args, &block) ⇒ DelayedJob
constructor
A new instance of DelayedJob.
- #stop ⇒ Object
- #stopped ⇒ Object
Constructor Details
#initialize(name_or_logger, initial_delay = 0, *args, &block) ⇒ DelayedJob
Returns a new instance of DelayedJob.
9 10 11 |
# File 'lib/jobs/delayed_job.rb', line 9 def initialize(name_or_logger, initial_delay = 0, *args, &block) @job = RecurrentJob.new(name_or_logger, 1, initial_delay, 1, *args, &block) end |
Instance Method Details
#exec_count ⇒ Object
17 18 19 |
# File 'lib/jobs/delayed_job.rb', line 17 def exec_count @job.exec_count end |
#stop ⇒ Object
13 14 15 |
# File 'lib/jobs/delayed_job.rb', line 13 def stop @job.stop end |
#stopped ⇒ Object
21 22 23 |
# File 'lib/jobs/delayed_job.rb', line 21 def stopped @job.stopped end |