docbrown/app/workers/page_view_rollup_worker.rb
Mac Siri 092ee4a425
Implement PageViewRollup (#20670)
* Refactor

* Create PageViewRollup WIP

* Create PageViewRollupWorker and specs

* Add spec WIP

* Write spec

* Refactor

* Add spec

* Prevent retry

* Update baseline date

* Improve specs

* Update ATTRIBUTES_

* Update spec again
2024-03-18 20:33:12 +00:00

10 lines
201 B
Ruby

class PageViewRollupWorker
include Sidekiq::Worker
sidekiq_options queue: :low_priority, retry: false
def perform
one_year_ago = 1.year.ago
PageViewRollup.rollup one_year_ago
end
end