Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change daily tasks to occur between 8-10AM #292

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ config :teiserver, Oban,
# Every hour
{"0 * * * *", Teiserver.Admin.HourlyCleanupTask},

# Every day at 1am
{"0 1 * * *", Teiserver.Admin.DailyCleanupTask},
# Every day at 8am
{"0 8 * * *", Teiserver.Admin.DailyCleanupTask},

# Every day at 2am
{"0 2 * * *", Teiserver.Logging.AggregateViewLogsTask},
# Every day at 9am
{"0 9 * * *", Teiserver.Logging.AggregateViewLogsTask},

# 1:07 am
{"7 1 * * *", Teiserver.Account.Tasks.DailyCleanupTask},
Expand All @@ -137,19 +137,19 @@ config :teiserver, Oban,
# Every minute
{"* * * * *", Teiserver.Battle.Tasks.PostMatchProcessTask},

# 2am
{"1 2 * * *", Teiserver.Logging.Tasks.PersistServerDayTask},
{"2 2 * * *", Teiserver.Logging.Tasks.PersistServerWeekTask},
{"3 2 * * *", Teiserver.Logging.Tasks.PersistServerMonthTask},
{"4 2 * * *", Teiserver.Logging.Tasks.PersistServerQuarterTask},
{"5 2 * * *", Teiserver.Logging.Tasks.PersistServerYearTask},
{"6 2 * * *", Teiserver.Logging.Tasks.PersistMatchDayTask},
{"7 2 * * *", Teiserver.Logging.Tasks.PersistMatchMonthTask},
{"8 2 * * *", Teiserver.Telemetry.InfologCleanupTask},
{"9 2 * * *", Teiserver.Logging.Tasks.PersistUserActivityDayTask},

# 2:43
{"43 2 * * *", Teiserver.Game.AchievementCleanupTask},
# 9am
{"1 9 * * *", Teiserver.Logging.Tasks.PersistServerDayTask},
{"2 9 * * *", Teiserver.Logging.Tasks.PersistServerWeekTask},
{"3 9 * * *", Teiserver.Logging.Tasks.PersistServerMonthTask},
{"4 9 * * *", Teiserver.Logging.Tasks.PersistServerQuarterTask},
{"5 9 * * *", Teiserver.Logging.Tasks.PersistServerYearTask},
{"6 9 * * *", Teiserver.Logging.Tasks.PersistMatchDayTask},
{"7 9 * * *", Teiserver.Logging.Tasks.PersistMatchMonthTask},
{"8 9 * * *", Teiserver.Telemetry.InfologCleanupTask},
{"9 9 * * *", Teiserver.Logging.Tasks.PersistUserActivityDayTask},

# 9:43
{"43 9 * * *", Teiserver.Game.AchievementCleanupTask},

# 0302 and 1202 every day, gives time for multiple telemetry day tasks to run if needed
{"2 3 * * *", Teiserver.Account.RecalculateUserDailyStatTask},
Expand Down
Loading