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

Callback transaction race conditions #4

Open
skiz opened this issue Nov 8, 2011 · 2 comments
Open

Callback transaction race conditions #4

skiz opened this issue Nov 8, 2011 · 2 comments

Comments

@skiz
Copy link
Collaborator

skiz commented Nov 8, 2011

It seems that save methods call _run_save_callbacks within the transaction, and the data may not have been written to the database by the time that a job is spawned and ran within another instance (such as resque).

You would expect that after_save callbacks would be fired after the the transaction has been completed.

@danielharan
Copy link
Collaborator

Hi Josh,

I haven't used this project in ages so don't really have much motivation to
fix things. Have you been able to test and fix in a branch, or found
someone that did? Happy to pull if that's the case.

Cheers,

d.

On Tue, Nov 8, 2011 at 6:54 PM, Josh Martin <
[email protected]>wrote:

It seems that save methods call _run_save_callbacks within the
transaction, and the data may not have been written to the database by the
time that a job is spawned and ran within another instance (such as resque).

You would expect that after_save callbacks would be fired after the the
transaction has been completed.


Reply to this email directly or view it on GitHub:
#4

@skiz
Copy link
Collaborator Author

skiz commented Dec 12, 2011

I'm looking in to the issue as it is introducing race conditions in a production environment. I should have a fix for it sometime this week.

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

2 participants