Initial commit
This commit is contained in:
8
lib/tasks/scheduler.rake
Normal file
8
lib/tasks/scheduler.rake
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace :scheduler do
|
||||
desc "Expire videos which are still pending analysis after a period of time"
|
||||
task expire_videos_with_pending_analysis: :environment do
|
||||
puts "Updating videos with expired analysis..."
|
||||
PendingAnalysis.expire(1.hour.ago)
|
||||
puts "Done."
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user