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

Sidekiq worker tries to access records too fast #85

Open
panasyuk opened this issue Feb 28, 2017 · 0 comments
Open

Sidekiq worker tries to access records too fast #85

panasyuk opened this issue Feb 28, 2017 · 0 comments

Comments

@panasyuk
Copy link

panasyuk commented Feb 28, 2017

The point is that spree_chimpy enqueues background jobs on after_create (after_destroy and state_machine's transition) callback and so underlying DB just doesn't commit changes in time (at least those RDBMS who use transactions).
Please allow the models to schedule background jobs on after_commit (on: :create etc.) callback.

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