check for spam less often

This commit is contained in:
Tao Bojlén 2019-07-27 10:32:42 +00:00
parent 1ff85ee0a5
commit ab5f442074
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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