Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

River notifications on create may be trigged before post is actaully created in db #39

Open
skogsmaskin opened this issue Feb 19, 2013 · 0 comments

Comments

@skogsmaskin
Copy link
Member

River-notifications are sent :after_create, however the writing in the database is done as a transaction. In some circumstances this result in a notification which might be put out on the river and read by consumers before the post is actually readable by the API.

We may consider not to use the ActiveRecord observer, but manually trigger the notification at the end of the transaction that produce new posts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant