mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 02:06:22 +00:00
11 lines
278 B
Ruby
11 lines
278 B
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :stats do
|
|
desc 'Process stats'
|
|
task process_all: :environment do
|
|
Site.all.find_each do |site|
|
|
UriCollectionJob.perform_now site: site, once: true
|
|
StatCollectionJob.perform_now site: site, once: true
|
|
end
|
|
end
|
|
end
|