[Pre-Alpha] Send Communications job missing scheduled communications #6092
Labels
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
Description
When the Send Communications job is running, there are communications with a Future Send Date Time that is valid and they should be sent but they are not. Using observability to look at the SQL generated by the job, it appears that the dates being used to find recipients are not correctly calculating start and end dates to choose communications.
Actual Behavior
Communications with an approval date more than 3 days in the past and a FutureSendDateTime of today, do not get sent.
Communications with a review date less than 3 days in the past and a FutureSendDateTime of today do get sent.
This is with the default Send Communications job settings in place.
Observability provides the following query being run as a part of the job.
This was for an instance of the job that ran on 11/18/2024 at 1:40:00 PM.
@p_linq_0 should be "11/18/2024 1:36:00 PM" - the current date time minus the 4 minute delay period
@p_linq_1 shoud be "1/15/2024 1:40:00 PM" - the current date time minus the 3 day expiration period
@p_linq_2 should be "11/18/2024 1:40:00 PM" - the current date time
@p_linq_3 should be "1/15/2024 1:40:00 PM" - the current date time minus the 3 day expiration period
Without SQL access in pre-alpha it was not possible to recreate there, we had to recreate in our instance running this pre-alpha version.
Expected Behavior
An approved communication with a future send date time should send when that date time is met, regardless of how far back the reviewed date time is.
Steps to Reproduce
Issue Confirmation
Rock Version
1.17.0.31
Client Culture Setting
en-US
The text was updated successfully, but these errors were encountered: