Code Monkey home page Code Monkey logo

Comments (12)

seuros avatar seuros commented on July 28, 2024

Add gem 'resque-scheduler' to your gemfile

resque don't accept scheduled jobs by default apparently.

from activejob.

hutchisonc avatar hutchisonc commented on July 28, 2024

I have gem 'resque-scheduler' in my gemfile when the error is occurring. I'm not sure, but I think the require line in the adapter may need to be changed from require 'resque-scheduler' to require 'resque/scheduler'

from activejob.

seuros avatar seuros commented on July 28, 2024

require 'resque-scheduler' is correct https://github.com/resque/resque-scheduler/tree/master/lib
Try to place resque-scheduler before activejob in the Gemfile.

from activejob.

hutchisonc avatar hutchisonc commented on July 28, 2024

Same error as before.

from activejob.

seuros avatar seuros commented on July 28, 2024

I don't use resque, but i will install it to fix this issue.

from activejob.

seuros avatar seuros commented on July 28, 2024

@glenwayguy can you try with my fork in resque branch ?

from activejob.

hutchisonc avatar hutchisonc commented on July 28, 2024

That worked! Thanks.

from activejob.

seuros avatar seuros commented on July 28, 2024

@glenwayguy are you using the github version of resque-scheduler ?
It seem that the rubygems version still use require the old 'resque_scheduler'

from activejob.

cristianbica avatar cristianbica commented on July 28, 2024

Maybe we should make enqueue_in/at optional: try to require the file and rescue and in enqueue_in/at check if the adapter responds to the enqueue later method. What do you guys think?--
Cristian Bica

On Thu, Jul 3, 2014 at 7:41 PM, Abdelkader Boudih
[email protected] wrote:

@glenwayguy are you using the github version of resque-scheduler ?

It seem that the rubygems version still use require the old 'resque_scheduler'

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

from activejob.

seuros avatar seuros commented on July 28, 2024

That will make the code dirty. Since the scheduler is owned by the same org, we don't have to worry about compatibility.

from activejob.

cristianbica avatar cristianbica commented on July 28, 2024

From the research we did I see that 2 adapters have the later functionality in a gem. For those we shouldn't force users to load both gems if they don't use the later functionality--
Cristian Bica

On Thu, Jul 3, 2014 at 9:15 PM, Abdelkader Boudih
[email protected] wrote:

That will make the code dirty. Since the scheduler is owned by the same org, we don't have to worry about compatibility.

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

from activejob.

seuros avatar seuros commented on July 28, 2024

I agree, maybe
we should add a :resque_generic without the later extension
or resque_scheduler with the later extension and remove the extension from the :resque .

Don't forget that we will have to add :resque2 later

from activejob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.