class ArchivePetitionsJob < ApplicationJob - ArchivePetitionsJob has no descriptive comment
queue_as :high_priority
def perform - ArchivePetitionsJob#perform doesn't depend on instance state (maybe move it to another class?)
Appsignal.without_instrumentation do
Petition.find_each do |petition|
next if petition.archived?
ArchivePetitionJob.perform_later(petition)
petition.update_column(:archiving_started_at, Time.current)
end
end
end
end