From ed4843ef4c8bd0a770b3efdabab96e96406a15a2 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Tue, 23 Apr 2024 10:09:20 -0400 Subject: [PATCH] Change digest rake to new schedule (#20884) --- lib/tasks/fetch.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/fetch.rake b/lib/tasks/fetch.rake index 15241d31f..5327622b4 100644 --- a/lib/tasks/fetch.rake +++ b/lib/tasks/fetch.rake @@ -2,7 +2,7 @@ # @sre:mstruve This is temporary until we have an efficient way to handle this task # in Sidekiq for our large DEV community. task send_email_digest: :environment do - if Time.current.wday >= 3 + if Time.current.wday.between?(1, 5) EmailDigest.send_periodic_digest_email end end