Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
d4f7f11c
Commit
d4f7f11c
authored
7 years ago
by
Ash Furrow
Committed by
Eugen Rochko
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adds logging for daily tasks (#2438)
* Adds logging for daily tasks. * Fixes Code Climate issues in #2438.
parent
1ce951d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/tasks/mastodon.rake
+10
-5
10 additions, 5 deletions
lib/tasks/mastodon.rake
with
10 additions
and
5 deletions
lib/tasks/mastodon.rake
+
10
−
5
View file @
d4f7f11c
...
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment