class ClosePetitionsEarlyJob < ApplicationJob - ClosePetitionsEarlyJob has no descriptive comment
queue_as :high_priority
class << self
def schedule_for(time)
set(wait_until: time).perform_later(time.iso8601)
end
end
def perform(time) - ClosePetitionsEarlyJob#perform doesn't depend on instance state (maybe move it to another class?)
Petition.close_petitions_early!(time.in_time_zone)
end
end