class NotifyCreatorsThatParliamentIsDissolvingJob < ApplicationJob - NotifyCreatorsThatParliamentIsDissolvingJob has no descriptive comment
queue_as :high_priority
def perform
petitions.find_each do |petition|
NotifyCreatorThatParliamentIsDissolvingJob.perform_later(petition.creator)
end
end
private
def petitions - NotifyCreatorsThatParliamentIsDissolvingJob#petitions doesn't depend on instance state (maybe move it to another class?)
Petition.open_at_dissolution
end
end