Digest are only partially being sent
-
Dear @boonebgorges,
I hope you’ve started well into the new year. Unfortunately, my sending issue which I had a few years ago is back. Only a small number of emails are being sent out to my users. So far I used the following code:
add_filter(
'wp_bpges_send_queue_time_exceeded',
function( $exceeded ) {
static $counter;
if ( $counter > 40 ) { // or whatever
return true;
}
++$counter;
return $exceeded;
}
);While the emails seems to be send in these small badges, it doesn’t affect the overall sending number. Then I tried to use the previous solution, as described here by introducing the limit as such:
if ( $this->time_exceeded() || $this->memory_exceeded() || $total_for_batch > 50 )
I also tried without any limit whatsoever, but no luck. Here’s my last log entry when it worked as it should:
[16-Jan-2025 17:02:23] Sent sum digests to 42 users as part of this batch. Launching another batch….
[16-Jan-2025 17:02:25] Beginning digest batch of type sum for timestamp 2025-01-16 17:00:15.
[16-Jan-2025 17:02:27] Sent sum digests to 42 users as part of this batch. Launching another batch….
[16-Jan-2025 17:02:29] Beginning digest batch of type sum for timestamp 2025-01-16 17:00:15.
[16-Jan-2025 17:02:31] Sent sum digests to 42 users as part of this batch. Launching another batch….
[16-Jan-2025 17:02:33] Beginning digest batch of type sum for timestamp 2025-01-16 17:00:15.
[16-Jan-2025 17:02:34] Finished digest run of type sum for timestamp 2025-01-16 17:00:15. Digests were sent to a total of 1364 users.
[16-Jan-2025 17:50:41] Beginning batch of immediate notifications for 14258.Now it looks like this:
[06-Feb-2025 17:00:09] Beginning digest batch of type sum for timestamp 2025-02-06 17:00:08.
[06-Feb-2025 17:00:19] Beginning digest batch of type dig for timestamp 2025-02-06 17:00:18.
[06-Feb-2025 17:00:19] Finished digest run of type dig for timestamp 2025-02-06 17:00:18. Digests were sent to a total of 0 users.
[06-Feb-2025 17:00:30] Sent sum digests to 42 users as part of this batch. Launching another batch….
[06-Feb-2025 17:00:32] Beginning digest batch of type sum for timestamp 2025-02-06 17:00:08.
[06-Feb-2025 17:00:54] Sent sum digests to 42 users as part of this batch. Launching another batch….
[06-Feb-2025 17:00:55] Beginning digest batch of type sum for timestamp 2025-02-06 17:00:08.This was without me changing anything from January in terms of custom code but it didn’t complete the process :/ The I tried without any restriction and then with the change in the code directly:
[07-Feb-2025 11:30:09] Beginning digest batch of type dig for timestamp 2025-02-07 11:30:07.
[07-Feb-2025 11:30:09] Finished digest run of type dig for timestamp 2025-02-07 11:30:07. Digests were sent to a total of 0 users.
[07-Feb-2025 11:30:10] Beginning digest batch of type sum for timestamp 2025-02-07 11:30:09.
[07-Feb-2025 12:16:07] Beginning digest batch of type dig for timestamp 2025-02-07 12:16:06.
[07-Feb-2025 12:16:07] Finished digest run of type dig for timestamp 2025-02-07 12:16:06. Digests were sent to a total of 0 users.
[07-Feb-2025 12:16:09] Beginning digest batch of type sum for timestamp 2025-02-07 12:16:07.
[07-Feb-2025 13:30:08] Beginning digest batch of type dig for timestamp 2025-02-07 13:30:07.
[07-Feb-2025 13:30:08] Finished digest run of type dig for timestamp 2025-02-07 13:30:07. Digests were sent to a total of 0 users.
[07-Feb-2025 13:30:10] Beginning digest batch of type sum for timestamp 2025-02-07 13:30:08.
[07-Feb-2025 14:20:08] Beginning digest batch of type dig for timestamp 2025-02-07 14:20:07.
[07-Feb-2025 14:20:08] Finished digest run of type dig for timestamp 2025-02-07 14:20:07. Digests were sent to a total of 0 users.
[07-Feb-2025 14:20:09] Beginning digest batch of type sum for timestamp 2025-02-07 14:20:08.No luck whatsoever. I checked my server logs and neihter did I have any related php server errors, ajax calls being blocked nor did the server run into any 500 errors or such – I have 1536 MB of ram, so should be plenty.
Any idea what I could still do to fix the issue?
Thanks a lot in advance and have a nice weekend!
Kind regards, Philip
- You must be logged in to reply to this topic.