Automated Responses to Flags not Generating Notification

I narrowed this down to a timing issue in Jobs::PostAlert. If I throw a sleep in there and query for the automated response post, it works fine. Otherwise, the first query fails to find the post.

Jobs are working fine for other posts that are enqueued though.

3 Likes