Comments (6)
I will try to do this one too.
from activejob.
@seuros any updates on this?
I was thinking about this and I saw 3 possible solutions:
- At the beginning of the
test/helper.rb
have asystem "AJADAPTER=#{ENV['AJADAPTER']} bundle update resque"
and in the Gemfile load resque gem depending on the AJADAPTER. (We will probably have to remove the Gemfile.lock from the repo also) - Create a separate Gemfile.resque2. At the begining of
test/helper.rb
set BUNDLE_GEMFILE to Gemfile or Gemfile.resque2 based on AJADAPTER value - Use appraisal
from activejob.
I added appraisal for now and changed the rake script, i can commit this change if you want.
The problem is that if you switch just the gem, the test will pass. That mean that the tests are not well writing, i'm going to make them fail first by using a real database instead of the fake ORM.
from activejob.
Well the problem I saw with appraisal was that when running the whole test suite (aka rake test
) they all should pass and I don't see that possible with appraisal. So ideally:
- if I run
rake test
it should run all tests (the resque2 test should run with resque 2.x gem) and pass - if I run an individual test it should run that test (with the correct gem version for resque)
I would go with Gemfile.resque2...
from activejob.
Here's what I had in mind: https://github.com/cristianbica/activejob/compare/resque2
Main issue with the implementation is that when updating developement gems you need to run bundle && BUNDLE_GEMFILE="Gemfile.resque1" bundle and BUNDLE_GEMFILE="Gemfile.resque2" bundle
Also the resque2 is in heavy development and stuff aren't working (Resque.inline
, resque-scheduler). I suggest we wait for them to have a more stable version ready and then work on an adapter.
from activejob.
👍 to waiting until a stable version is out.
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
- Setting resque queue adapter fails HOT 12
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.