No description, website, or topics provided.
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Sidekiq / ActiveRecord transaction bug

How to reproduce:

bundle install
rake db:migrate

Run this in rails console

e = Entry.create!
LongRunningWorker.perform_async(e.id)

Start sidekiq and wait for it to perform the job (UPDATE entries ...) then the long running worker does a sleep 60. Press Ctrl-C and watch how ActiveRecord COMMITs instead of performing a ROLLBACK.