diff --git a/backend/config/config.exs b/backend/config/config.exs index 8a193c1..a34caf3 100644 --- a/backend/config/config.exs +++ b/backend/config/config.exs @@ -74,8 +74,8 @@ config :backend, Backend.Scheduler, {"15 0 * * *", {Backend.Scheduler, :generate_edges, []}}, # 00.30 every night {"30 0 * * *", {Backend.Scheduler, :generate_insularity_scores, []}}, - # Every 30 minutes - {"*/30 * * * *", {Backend.Scheduler, :check_for_spam_instances, []}} + # Every 3 hours + {"0 */3 * * *", {Backend.Scheduler, :check_for_spam_instances, []}} ] # Import environment specific config. This must remain at the bottom diff --git a/backend/lib/backend/scheduler.ex b/backend/lib/backend/scheduler.ex index ac96176..5ca1eaa 100644 --- a/backend/lib/backend/scheduler.ex +++ b/backend/lib/backend/scheduler.ex @@ -165,7 +165,7 @@ defmodule Backend.Scheduler do notifies the server admin over SMS. """ def check_for_spam_instances() do - hour_range = 6 + hour_range = 3 count_subquery = Instance