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

Can not Resque.new #976

Closed
ponny opened this issue Apr 29, 2013 · 8 comments
Closed

Can not Resque.new #976

ponny opened this issue Apr 29, 2013 · 8 comments

Comments

@ponny
Copy link

ponny commented Apr 29, 2013

I'm having a huge amount of trouble getting Resque to work. I must be missing something very big because I'm following the steps from your README. I'm using Rails 4:

2.0.0dev > Resque::VERSION
=> "1.24.1"
2.0.0dev > Resque.new
NoMethodError: undefined method `new' for Resque:Module

Same issue with master:
gem 'resque', :git => 'git://github.com/resque/resque.git'

This would not work:
gem "resque", "> 2.0.0.pre.1"
Because:
Could not find gem 'resque (
> 2.0.0.pre.1) ruby' in the gems available on this machine.

@steveklabnik
Copy link
Member

You missed this line:

Also, this README is written first, so lots of things in here may not work the exact way that they say they might here. Yay 2.0!

;)

I'll leave this open because it hasn't been implemented yet.

@steveklabnik
Copy link
Member

If you're using 1.24.1 (and you should be) you should be reading the 1.x readme: https://github.com/resque/resque/blob/1-x-stable/README.markdown

@ponny
Copy link
Author

ponny commented Apr 29, 2013

Resque.new didn't work for v2 either. V2 not ready to use yet?

2.0.0dev :001 > Resque::VERSION
=> "2.0.0.pre.1"
2.0.0dev :002 > Resque.new
NoMethodError: undefined method `new' for Resque:Module

As a quick sidenote, is there a way to tell resque not to run a job for say 30 minutes?

@steveklabnik
Copy link
Member

Yes, V2 is nowhere near done yet. We're working on reafactorings, getting code under test, the site, documentation, and figuring out the right interface for 2.0 yet.

not to run a job for say 30 minutes?

You'll want to use resque-scheduler.

@jacobo
Copy link

jacobo commented May 13, 2013

I noticed that "what we want it to be" example is very close to the abandoned rails 4 Q API
Is this this the goal?

If so, are you interested in seeing something like this as a PR to resque:
rails/rails#9924

If not, what other ideas do we have for a "better" API? Where is this discussion happening and how can I be involved?

@steveklabnik
Copy link
Member

I want @jeremy in on this discussion, as the Rails 4 queue API was specifically rejected. I'd prefer Resque to be it near-directly.

Sent from Mailbox for iPhone

On Mon, May 13, 2013 at 6:58 PM, Jacob Burkhart notifications@github.com
wrote:

I noticed that "what we want it to be" example is very close to the abandoned rails 4 Q API
Is this this the goal?
If so, are you interested in seeing something like this as a PR to resque:
rails/rails#9924

If not, what other ideas do we have for a "better" API? Where is this discussion happening and how can I be involved?

Reply to this email directly or view it on GitHub:
#976 (comment)

@cdrage
Copy link

cdrage commented Dec 30, 2015

As per 4b04fb8

and http://words.steveklabnik.com/rescuing-resque-again

"We will plan on making this switch in the next couple of weeks. If you feel this is the wrong move, please let us know. But since active development will in fact happen on 1.x, this feels like the correct thing."

Let's close these issues? #1175

@steveklabnik
Copy link
Member

Yes, this is a good point, thanks!

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

4 participants