Comments (4)
Hey Gerry, I threw in the rake task originally. I will admit that I didn't test it within the context of a Rails 3 app, I was also using Rake 0.8.x when I implemented it.
from queue_classic.
@Bobbyw, I think @gerry3 is talking about lib/queue_classic/tasks.rb and not the Rakefile in the project's root dir.
@gerry, I just tested my example rails app and didn't run into this issue. Does your setup look like this: https://github.com/ryandotsmith/queue_classic_example/blob/master/Rakefile ?
from queue_classic.
Ok, that works! The key is to require 'queue_classic/tasks'
in the Rakefile which makes sense. I think I have seen that before, but our Rakefile doesn't have any other examples of it, so I didn't think to try it. I studied the example Rails app a lot, but must've missed that part of the Rakefile.
Any thoughts on why these tasks don't show up in the list when I run rake -T
? Is that expected? I can see the RSpec tasks, but that gem might be installed as a plugin or be special is some other way...
from queue_classic.
Not sure about rake -T
I would love to see QC related tasks show up there. Feel free to submit a feature ;)
Also, I added Rakefile to the list of important files to look at in the readme of the rails example:
ryandotsmith/queue_classic_example@8abf651
from queue_classic.
Related Issues (20)
- queue classic not thread safe HOT 3
- Missing queue_class:install generator HOT 6
- Passwords sometimes need to be URI encoded (and decoded!) HOT 1
- Add AR versions to generators for migrations HOT 2
- PG::ConnectionBadqc:work PQconsumeInput() connection not open HOT 13
- No Implicit coversion of Time into String HOT 1
- Is there anything like que-scheduler for queue_classic? HOT 1
- ActiveRecord connection sharing: connection is returned to the pool HOT 4
- [FAQ] queue classic and classic plus for production HOT 1
- ActiveRecord connection sharing: queue_classic cause rails application hang HOT 2
- Queue Classic crashes regularly with "PG::ConnectionBad: connection is closed"
- precompile fails with ruby 2.7 HOT 1
- PG::ConnectionBad: invalid connection option "tty" when using libpq5 from PostgreSQL 14 HOT 4
- Possibility of a release version? HOT 2
- Support for OracleSQL HOT 2
- Investigate PG 12+ CTE materialization
- How does `FOR NO KEY UPDATE SKIP LOCKED` handle workers running on different machines? HOT 3
- Why #lock is not using `QC.table_name` HOT 1
- Gem signing HOT 1
- Use Github Actions to build the gem, instead of doing it by hand
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 queue_classic.