-
Notifications
You must be signed in to change notification settings - Fork 8
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
Anya/375 sikekiq not found #498
Conversation
@aroltsch — can we add a little bit of context on how this connects to #375 ? is there a recommended way we can test that this addresses the issue/how did you discover the fix? |
app/models/download.rb
Outdated
@@ -40,6 +40,10 @@ class Download < ActiveRecord::Base | |||
end | |||
end | |||
|
|||
# Sidekiq is finding out about the job before the database record has it committed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this verb tense may not clearly show the meaning after this is merged.
Suggest something more like To prevent Sidekiq from finding out...
And maybe we can post that SO link too?
@amprokop |
ebb5efc
to
d3d034a
Compare
connects #375
Record not found
issue - Sidekiq is finding out about the job before the database record has it committed, so use after_commit on: :create.after_commit
hook in rspec.