check for spam less often
This commit is contained in:
parent
1ff85ee0a5
commit
ab5f442074
|
@ -74,8 +74,8 @@ config :backend, Backend.Scheduler,
|
||||||
{"15 0 * * *", {Backend.Scheduler, :generate_edges, []}},
|
{"15 0 * * *", {Backend.Scheduler, :generate_edges, []}},
|
||||||
# 00.30 every night
|
# 00.30 every night
|
||||||
{"30 0 * * *", {Backend.Scheduler, :generate_insularity_scores, []}},
|
{"30 0 * * *", {Backend.Scheduler, :generate_insularity_scores, []}},
|
||||||
# Every 30 minutes
|
# Every 3 hours
|
||||||
{"*/30 * * * *", {Backend.Scheduler, :check_for_spam_instances, []}}
|
{"0 */3 * * *", {Backend.Scheduler, :check_for_spam_instances, []}}
|
||||||
]
|
]
|
||||||
|
|
||||||
# Import environment specific config. This must remain at the bottom
|
# Import environment specific config. This must remain at the bottom
|
||||||
|
|
|
@ -165,7 +165,7 @@ defmodule Backend.Scheduler do
|
||||||
notifies the server admin over SMS.
|
notifies the server admin over SMS.
|
||||||
"""
|
"""
|
||||||
def check_for_spam_instances() do
|
def check_for_spam_instances() do
|
||||||
hour_range = 6
|
hour_range = 3
|
||||||
|
|
||||||
count_subquery =
|
count_subquery =
|
||||||
Instance
|
Instance
|
||||||
|
|
Loading…
Reference in a new issue