Class: Delayed::JobGroups::Plugin
- Inherits:
-
Plugin
- Object
- Plugin
- Delayed::JobGroups::Plugin
- Defined in:
- lib/delayed/job_groups/plugin.rb
Class Method Summary collapse
Class Method Details
.job_completed?(job) ⇒ Boolean
44 45 46 47 48 |
# File 'lib/delayed/job_groups/plugin.rb', line 44 def self.job_completed?(job) # Delayed job will already have marked the job for destruction # if it has completed job.destroyed? end |
.job_group_cancelled?(job_group_id) ⇒ Boolean
40 41 42 |
# File 'lib/delayed/job_groups/plugin.rb', line 40 def self.job_group_cancelled?(job_group_id) !JobGroup.exists?(job_group_id) end |