Open pigoz opened 10 years ago
@pigoz Those changes look like they'd create a minimal impact. Was your idea to add some indirection via a method that checks which adapter is being used and then call the appropriate method?
Yep, that's pretty much what I'd like to do.
+1 Anything new?
@23tux Sorry, I'm super busy at work and I have other free software projects to maintain in my free time...
+1
:+1:
:+1:
:+1:
I have a different error trying to access the overview screen
undefined method `group' for Delayed::Backend::Mongoid::Job:Class
The faulty code is the overview view that is calling
lib/delayed_job_web/application/views/overview.erb
delayed_jobs(nil).group(:queue).size.each
I have no idea how it's even possible to call .each
on a .size
that should be of type integer (or that means .size
returns a more complex object). Either this is ActiveRecord being bizarre or there's something I am missing. I actually could not find any reference to a .group
method being defined anywhere in the original delayed_job
gem. I originally thought it was a missing method on the Mongoid backend but couldn't find any reference to the AR implementation
The interface works fine for me without this extra overview view line html template and with pigoz's patch (therefore I'll be using pigoz' master branch in my gemfile, I am only using delayed_job in development)
Hello, thanks for this awesome gem!
I want to know if you'd be interested in adding mongoid support. I did a small quick and dirty fork but it looks like the gem can work almost as is (see changes).
If you are interested when I have a little time I could abstract away this stuff, add tests and send you a PR.