# No email notifications for posts that require approval

**URL:** <https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792>\
**Category:** Bug\
**Created:** [18.Август.2016 10:34:10 UTC](https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792 "2016-08-18T10:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [23.Август.2016 16:35:04 UTC](https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792/7 "2016-08-23T16:35:04Z")

</div>

This is almost certainly the cause, thanks! We’ve seen this before where transactions aren’t complete before sidekiq processes the jobs (because it’s too fast).

Delaying by a few seconds is a bit of a dangerous fix as if the database is slow or if there is another delay it will continue to break.

It seems `PostCreator` is not transaction safe. Perhaps we should adjust it so that it only performs the enqueing after the post/topic is committed?

---

_[View the full topic](https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792)._
