Skip to content
Snippets Groups Projects
Commit d4f7f11c authored by Ash Furrow's avatar Ash Furrow Committed by Eugen Rochko
Browse files

Adds logging for daily tasks (#2438)

* Adds logging for daily tasks.

* Fixes Code Climate issues in #2438.
parent 1ce951d0
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,16 @@
namespace :mastodon do
desc 'Execute daily tasks'
task :daily do
Rake::Task['mastodon:feeds:clear'].invoke
Rake::Task['mastodon:media:clear'].invoke
Rake::Task['mastodon:users:clear'].invoke
Rake::Task['mastodon:push:refresh'].invoke
%w(
mastodon:feeds:clear
mastodon:media:clear
mastodon:users:clear
mastodon:push:refresh
).each do |task|
puts "Starting #{task} at #{Time.utc.now}"
Rake::Task[task].invoke
end
puts "Completed daily tasks at #{Time.utc.now}"
end
desc 'Turn a user into an admin, identified by the USERNAME environment variable'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment