Comments (32)
Running into the same problem with MySQL.
In addition, we are seeing Delayed::Job record not found exceptions as one job finished processing the job while the other is attempting to lock. This literally crashes the worker process.
from delayed_job_active_record.
Same issue.
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1
from delayed_job_active_record.
Ah. That explains a lot.
+1
Same issue and my app is presently very lightly loaded: 2 workers and 4-5 jobs/sec.
On Mar 6, 2013, at 12:58 PM, Aguilar [email protected] wrote:
Same issue.
—
Reply to this email directly or view it on GitHub.
from delayed_job_active_record.
+1
from delayed_job_active_record.
I've already +1'd this but have a question.
We are building an application at my company and are delivering and demoing a prototype next week to management. Is this going to be fixed? If not, can anyone suggest what alternative solution I should rapidly swap out to? I have been having workers crash in testing and believe it to be this issue.
I need to demonstrate background data processing early next week and can't have workers crashing. Until I noticed this thread, I've been blaming it on my EC2 instances and pulling my hair out. :)
Thanks all.
N
On Mar 11, 2013, at 4:47 AM, Martin Ottenwaelter [email protected] wrote:
+1
—
Reply to this email directly or view it on GitHub.
from delayed_job_active_record.
Lock the dependency at 0.4.1.
On Monday, March 11, 2013, njnorrgard wrote:
I've already +1'd this but have a question.
We are building an application at my company and are delivering and
demoing a prototype next week to management. Is this going to be fixed? If
not, can anyone suggest what alternative solution I should rapidly swap out
to? I have been having workers crash in testing and believe it to be this
issue.I need to demonstrate background data processing early next week and can't
have workers crashing. Until I noticed this thread, I've been blaming it on
my EC2 instances and pulling my hair out. :)Thanks all.
N
On Mar 11, 2013, at 4:47 AM, Martin Ottenwaelter <[email protected]<javascript:_e({}, 'cvml', '[email protected]');>>
wrote:+1
—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-14721097
.
from delayed_job_active_record.
Bump. This is a fairly important issue that needs to be fixed ASAP because it can lead to all sorts of havoc, such as email users multiple times for the same thing (think credit card payment notifications being sent out 3-5 times!).
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1 !
from delayed_job_active_record.
+1474
thats the amount of dj's created overnight after we updated dj_ar to 0.4.2
from delayed_job_active_record.
+1
So the fix is to lock the version to 0.4.1 in the Gemfile?
If I do "gem list" I don't even see delayed_job_active_record, so not sure how I can uninstall the 0.4.3 version.
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1
from delayed_job_active_record.
+1
from delayed_job_active_record.
Would someone be willing to put together a pull request to fix this?
from delayed_job_active_record.
See my conversation on Twitter with @sferik: https://twitter.com/martoche/status/317284063134228480
from delayed_job_active_record.
@martoche Understandable that you don't feel comfortable enough with the codebase to make a pull request. And it really sucks that this has been outstanding as long as it has been.
That said... if anyone following this ticket is willing to do the work to revert those commits and make a pull request we can likely get a new gem cut today and the old one yanked. At the very least we'll get the bad gem yanked today.
from delayed_job_active_record.
And can anyone confirm that this was introduced in 0.4.2?
from delayed_job_active_record.
I'm sorry it has taken so long for me to get to this issue. I’ve merged @albus522’s patch into master
and cherry-picked the relevant changes into the 0-4-stable
branch.
Can someone please confirm the fix by replacing the delayed_job_active_record
line in their Gemfile
with:
gem 'delayed_job_active_record', :git => 'git://github.com/collectiveidea/delayed_job_active_record.git', :branch => '0-4-stable' # or 'master' for Rails 4
After this fix is confirmed, I will release gem versions 0.4.4
and 4.0.0.beta2
. Unless the patch introduces new issues, these gems should be released later today.
from delayed_job_active_record.
There's no way to test this? I don't feel confortable with pushing this in production to test it.
from delayed_job_active_record.
I've released gem versions 0.4.4
and 4.0.0.beta2
.
from delayed_job_active_record.
This is fixed for me in 4.0.0.beta2
Thanks!
from delayed_job_active_record.
Adding this to my Gemfile
+ bundle
install fixed the issue for me.
gem 'delayed_job_active_record', '0.4.1'
from delayed_job_active_record.
@jamsi Can you please try version 0.4.4
(released this morning) and let me know if that works for you?
from delayed_job_active_record.
Seems OK with 0.4.4 for me. Thanks !
from delayed_job_active_record.
@sferik 0.4.4 seems to be ok too. I'm just glad I caught this before I pushed to production. It's a hard thing for rspec to pickup =\
Many thanks.
from delayed_job_active_record.
Related Issues (20)
- Rails 6.1.0.alpha support HOT 3
- `Delayed::Job` no longer defined in initializers HOT 16
- Delayed::DeserializationError: Job failed to load: undefined class/module Spree::AccountSalesRecordMailer.
- undefined method `table_name=` for Delayed::Backend::ActiveRecord::Job:Class HOT 1
- 4.1.5 breaking changes HOT 5
- A way to get the job ID inside a worker? HOT 2
- Error in 4.1.5 when upgrading Rails from 6.0 to 6.1 HOT 2
- Job running on 2 workers at once after timeout HOT 1
- Delayed job stops, the jobs are stuck in postgres HOT 6
- Rails 7 Support HOT 9
- Use case for locked_by in the ready_to_run query HOT 1
- Use `update` instead of `update_all` in the reserve_with_scope_using_optimized_mysql method.
- Do that destroy_failed_jobs get honored by delayed_job?
- Problem with DelayedJob Psych gem when upgrading to Ruby 2.7.5 HOT 2
- Rails 7 weird error: can't dump anonymous module HOT 3
- Can't create Delayed::Job record after `errors.add` in model HOT 1
- How does max_attempts interface with ActiveJob retry_on method?
- Deprecation warning in rails 7.1 HOT 1
- Need a new release to support rails 7.1
- Don't optimize mysql query with trilogy gem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delayed_job_active_record.