mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:06:20 +00:00
12 lines
299 B
Ruby
12 lines
299 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
namespace :stats do
|
||
|
desc 'Process stats'
|
||
|
task process_all: :environment do
|
||
|
Site.all.pluck(:id).each do |site_id|
|
||
|
UriCollectionJob.perform_now site_id: site_id, once: true
|
||
|
StatCollectionJob.perform_now site_id: site_id, once: true
|
||
|
end
|
||
|
end
|
||
|
end
|