Comments (12)
Add gem 'resque-scheduler'
to your gemfile
resque don't accept scheduled jobs by default apparently.
from activejob.
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.
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.
Same error as before.
from activejob.
I don't use resque, but i will install it to fix this issue.
from activejob.
@glenwayguy can you try with my fork in resque branch ?
from activejob.
That worked! Thanks.
from activejob.
@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.
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.
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.
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.
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)
- 4.2.0.rc2 NoMethodError Exception: undefined method `deliver_now' for #<Mail::Message:0xfbcfef8> HOT 1
- Can I stack resque gem with plugin resque-history and ActiveJob? HOT 1
- ActiveJob with multiple databases HOT 4
- adapter to Amazon Simple Workflow HOT 1
- Convert resque-statsd to activejob-statsd HOT 9
- Add a proper usage guide HOT 3
- [Feature request] Cancel jobs HOT 40
- Set the job_id attribute on ActiveJob to the value from the adapter HOT 1
- Add deep serialization HOT 1
- amqp, SQS, stomp, other messaging/queuing support? HOT 5
- Support multiple adapters, map adapters to queues HOT 25
- Add new inline-like built-in adapter to process it in a thread HOT 28
- MyJob.enqueue Syntax HOT 6
- Provide more solid default adapter HOT 40
- Are multiple queues even possible as written? HOT 3
- Girl_friday adapter? HOT 4
- Should we add a delayed mixin so users can delay any method? HOT 32
- delayed job adapter doesn't work properly with float timestamp
- resque job serialization fails under Rails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activejob.