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
42 43 44 45 46 |
# File 'lib/delayed/job_groups/plugin.rb', line 42 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
38 39 40 |
# File 'lib/delayed/job_groups/plugin.rb', line 38 def self.job_group_cancelled?(job_group_id) !JobGroup.exists?(job_group_id) end |