Skip to content
代码片段 群组 项目
提交 2e072034 编辑于 作者: Jacob Vosmaer's avatar Jacob Vosmaer
浏览文件

Send 'admin emails' weekly, not daily

Daily seems to be to spammy, so let's default to weekly instead.
上级 f127edd0
No related branches found
No related tags found
无相关合并请求
......@@ -168,9 +168,9 @@ production: &base
# once per hour you will have concurrent 'git fsck' jobs.
repository_check_worker:
cron: "20 * * * *"
# Send admin emails once a day
# Send admin emails once a week
admin_email_worker:
cron: "0 0 * * *"
cron: "0 0 * * 0"
# Remove outdated repository archives
repository_archive_cache_worker:
......
......@@ -245,7 +245,7 @@ def host(url)
Settings.cron_jobs['repository_check_worker']['cron'] ||= '20 * * * *'
Settings.cron_jobs['repository_check_worker']['job_class'] = 'RepositoryCheck::BatchWorker'
Settings.cron_jobs['admin_email_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['admin_email_worker']['cron'] ||= '0 0 * * *'
Settings.cron_jobs['admin_email_worker']['cron'] ||= '0 0 * * 0'
Settings.cron_jobs['admin_email_worker']['job_class'] = 'AdminEmailWorker'
Settings.cron_jobs['repository_archive_cache_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['repository_archive_cache_worker']['cron'] ||= '0 * * * *'
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册