ejschmitt / delayed_job_web

Resque like web interface for delayed job
MIT License
479 stars 187 forks source link

Delayed Job Mongoid #71

Open pigoz opened 10 years ago

pigoz commented 10 years ago

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.

andyatkinson commented 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?

pigoz commented 10 years ago

Yep, that's pretty much what I'd like to do.

23tux commented 10 years ago

+1 Anything new?

pigoz commented 9 years ago

@23tux Sorry, I'm super busy at work and I have other free software projects to maintain in my free time...

kinnrot commented 9 years ago

+1

mipmip commented 9 years ago

:+1:

andresilveirah commented 9 years ago

:+1:

jlneto commented 9 years ago

:+1:

Startouf commented 6 years ago

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)