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

Creating records in after_failure callbacks with SQLite #318

Open
awhitty opened this issue Jul 16, 2014 · 0 comments
Open

Creating records in after_failure callbacks with SQLite #318

awhitty opened this issue Jul 16, 2014 · 0 comments

Comments

@awhitty
Copy link

awhitty commented Jul 16, 2014

I've read over #122 and the commit referenced in the issue. Using a separate database connection on a model to create records that are not affected by the transaction rollback is definitely a nice workaround. However, SQLite does not support concurrent connections, so the second database connection hangs while the transaction is still pending and the transaction never gets committed because it's waiting for the after_failure callback to return, yielding this exception: SQLite3::BusyException: database is locked: commit transaction.

It would be nice to break the after_failure callback out of the transaction or to at least have that as an option.

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