bin/rails runner -e :environment ':task' :output" every 5.minutes do runner 'Video.schedule_activation_all' runner 'Video.expire_grace_all' runner 'Content::Recommendation::Popularity.randomize_all' runner 'Content::List::List.schedule_activation!' runner 'Content::List::List.schedule_expiration!' end every '0 2 20 * *' do runner "Video.create_sale_list(Time.current)" end