5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 18:16:22 +00:00
panel/lib/tasks/stats.rake

12 lines
278 B
Ruby
Raw Permalink Normal View History

# 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