Project

General

Profile

Actions

Bug #23339

open

Posts not being Emailed

Added by Luke Waltzer 4 months ago. Updated 5 days ago.

Status:
Reporter Feedback
Priority name:
Normal
Assignee:
-
Category name:
-
Target version:
-
Start date:
2025-09-03
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

A couple of posts I've made in the past week have not been emailed out to users.

One was this forum post, posted to the TLC Group directly through the forum, and cross-posted to multiple other groups.

https://commons.gc.cuny.edu/groups/teaching-and-learning-center/forum/topic/two-learning-experience-designer-positions-heo-associate-at-bmcc-5/

The second was this blog post posted to the TLC site, and not emailed through the group (I confirmed that "Send to Group" was checked in the Group Blog field.

https://tlc.commons.gc.cuny.edu/2025/09/03/tlc-workshops-teaching-statements-for-the-job-market/

Activity items were created for both posts.

https://commons.gc.cuny.edu/groups/teaching-and-learning-center/


Related issues

Related to CUNY Academic Commons - Bug #21964: Posts on Connected Group-site Not posting to forumReporter Feedback2025-02-03

Actions
Actions #1

Updated by Boone Gorges 4 months ago

  • Related to Bug #21964: Posts on Connected Group-site Not posting to forum added
Actions #2

Updated by Boone Gorges 4 months ago

  • Status changed from New to Reporter Feedback

This is likely the same issue as #21964

I was able to see the queued items for activity id 1092333 in the database. I used a small script to trigger a manual run of the BPGES async send queue, and I found that requests were timing out after a couple batches were sent. I monkey-patched to set the timeout to 30 seconds and it seems to have made the problem go away.

It's not clear to me why the TLC posts in particular would be occasionally exceeding the default 10s limit - could have something to do with the number of members subscribed? - but it should be harmless to bump the limit across the board. I've made the change in https://github.com/cuny-academic-commons/cac/commit/7c76d5c971d086b963841cea510a348d38762c06

I'd also had a change in place that limited the number of items that could be sent in a single batch. See https://redmine.gc.cuny.edu/issues/21964#note-30. There's a ticket in the BPGES tracker to make this easier to do: https://github.com/boonebgorges/buddypress-group-email-subscription/issues/237 I've just put a filter in the plugin and hotfixed CAC with the filter, so that we can have a more reliable way of limiting batch size. https://github.com/cuny-academic-commons/cac/commit/f90b4cee800adfbb40f7d6ca47e4b09348c50474

Luke, could you please do the following:
1. Confirm that you got an email notification for the https://tlc.commons.gc.cuny.edu/2025/09/03/tlc-workshops-teaching-statements-for-the-job-market activity item. Should've come around 2:15pm EDT or thereabouts
2. Let me know whether you want me to trigger a send for the `Sharing two Learning Experience Designer...` forum post (activity 1089529)
3. Next time you post something to the TLC group, let me know here whether the notifications are sent as expected

Actions #3

Updated by Luke Waltzer 4 months ago

Thanks Boone.

Luke, could you please do the following:
1. Confirm that you got an email notification for the https://tlc.commons.gc.cuny.edu/2025/09/03/tlc-workshops-teaching-statements-for-the-job-market activity item. Should've come around 2:15pm EDT or thereabouts

Yes, came at 1:57, was activity item created when I edited the post.

2. Let me know whether you want me to trigger a send for the `Sharing two Learning Experience Designer...` forum post (activity 1089529)

Yes, please do.

3. Next time you post something to the TLC group, let me know here whether the notifications are sent as expected.

Will do.

Actions #4

Updated by Boone Gorges 4 months ago

Thanks, Luke.

2. Let me know whether you want me to trigger a send for the `Sharing two Learning Experience Designer...` forum post (activity 1089529)

Looking more closely, it appears that there are no pending 'immediate' notifications for this item. I'm not sure why - perhaps they were cleared out because they're a few days old. So I'm afraid there's nothing I can trigger here. Please do let me know the next time you send an item out.

Actions #5

Updated by Luke Waltzer 5 days ago

Made new post yesterday on TLC site -- https://tlc.commons.gc.cuny.edu/2026/01/05/the-tlcs-2026-mid-winter-institute/

Activity item created in group, but no email notification was sent.

Actions #6

Updated by Boone Gorges 5 days ago

Hey all - Trying to reassemble the chain of events here. I see that an activity item was created at 2026-01-05 21:34:30 (4:34pm Eastern), and it appears that a bunch of BPGES notifications are queued for this item (note to self: 1134485)

I also see that a forum post was created at 2026-01-06 15:45:19 (10:45 Eastern) with the URL https://commons.gc.cuny.edu/groups/teaching-and-learning-center/forum/topic/tlcs-2026-mid-winter-institute-jan-20-23/. This appears to have been cross-posted to several other groups, and it looks like all immediate BPGES notifications for that one did go out.

I see that Laurie posted an update to this ticket and then deleted it saying that she got an email notification at 10:50am. Presumably this was actually a notification of the forum post from this morning, not the blog post from last night, and once Laurie realized this, she deleted her post. Is that correct? I want to be sure I'm looking at the right thing.

==

Looking at 1134485, I can see in the BPGES log that at least some notifications were sent:

$ grep 1134485 wp-content/uploads/bpges-debug.log 
[05-Jan-2026 21:34:30] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:34] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:34:34] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:37] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:34:38] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:41] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:34:42] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:45] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:34:45] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:49] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:34:49] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:52] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:34:53] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:56] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:34:56] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:34:59] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:35:00] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:35:03] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:35:04] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:35:07] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....
[05-Jan-2026 21:35:08] Beginning batch of immediate notifications for 1134485.
[05-Jan-2026 21:35:11] Sent 10 immediate notifications for 1134485 this batch. Launching another batch....

There are 11 batches, which is theoretically 110 emails. The count of pending 'immediate' emails for this activity item is 196 (total pending, including digests, 203). This is a total of roughly 310. Membership for https://commons.gc.cuny.edu/groups/teaching-and-learning-center/members/ is 377. In the subscriptions table I see 367 subscriptions for this group (not sure about this discrepancy; there could be some memberships that are pending invites or something). About 30 users have their subscription status set to "no". 30 "no" users + 110 sent emails + 203 = 343, and it's likely that I'm missing something. So we're in the ballpark, strongly suggesting that the ~110 emails were actually sent out, and the batch process died for some reason. This, again, is a duplicate of what we saw earlier in this ticket and in #21964.

The only way for me to debug this further is to set up a live logger. It's not easy or practical to do this in a persistent way that only tracks the TLC blog. So it would be helpful, Luke and team, if you could let me know with perhaps a day's notice when you're going to send out another blast. Then I can set up some temporary debug points that will help me collect information about what when and where the process is failing.

Actions #7

Updated by Laurie Hurson 5 days ago

yes that is correct - i received email of forum post, sorry for the confusion

Actions

Also available in: Atom PDF