Skip to content
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

Delayed Job Mongoid #71

Open
pigoz opened this issue Sep 11, 2014 · 9 comments
Open

Delayed Job Mongoid #71

pigoz opened this issue Sep 11, 2014 · 9 comments

Comments

@pigoz
Copy link

pigoz commented Sep 11, 2014

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
Copy link
Collaborator

@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
Copy link
Author

pigoz commented Sep 15, 2014

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

@23tux
Copy link

23tux commented Nov 6, 2014

+1 Anything new?

@pigoz
Copy link
Author

pigoz commented Nov 10, 2014

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

@kinnrot
Copy link

kinnrot commented Jan 5, 2015

+1

3 similar comments
@mipmip
Copy link

mipmip commented Apr 10, 2015

👍

@andresilveirah
Copy link

👍

@jlneto
Copy link

jlneto commented Jun 25, 2015

👍

@Startouf
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants