Updated

app/jobs / enqueue_petition_statistics_updates_job.rb

A
13 lines of codes
1 methods
6.0 complexity/method
2 churn
6.04 complexity
0 duplications
class EnqueuePetitionStatisticsUpdatesJob < ApplicationJob
  1. EnqueuePetitionStatisticsUpdatesJob has no descriptive comment
queue_as :low_priority delegate :disable_daily_update_statistics_job?, to: :Site def perform(timestamp) return if disable_daily_update_statistics_job? Petition.signed_since(timestamp.in_time_zone).find_each do |petition| UpdatePetitionStatisticsJob.perform_later(petition) end end end