Change digest rake to new schedule (#20884)
This commit is contained in:
parent
91810ba5d7
commit
ed4843ef4c
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# @sre:mstruve This is temporary until we have an efficient way to handle this task
|
# @sre:mstruve This is temporary until we have an efficient way to handle this task
|
||||||
# in Sidekiq for our large DEV community.
|
# in Sidekiq for our large DEV community.
|
||||||
task send_email_digest: :environment do
|
task send_email_digest: :environment do
|
||||||
if Time.current.wday >= 3
|
if Time.current.wday.between?(1, 5)
|
||||||
EmailDigest.send_periodic_digest_email
|
EmailDigest.send_periodic_digest_email
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue