Comments (5)
Thanks @mzpqnxow . But I have fail back to use rq directly in flask.
from flask-rq2.
I've been stuck on working out how to make a success callback in RQ2. But it seems like it's not implemented, so will probably go back to vanilla RQ.
from flask-rq2.
I haven't looked at the source yet but it seems it should be a relatively simple addition. Any comment on whether this is supported in some other way, or if there are plans to implement it?
EDIT: @MaxVRAM, @richardfat7 , I added this and submitted as PR #118. There are instructions on how to install directly from that branch if you'd like to give it a shot. It works on my application. I'll need the Flask-RQ2 devs to review and merge if you'd like this to be available in the PyPi package
from flask-rq2.
If this can be reviewed and consider for merge, that'd be terrific. Until then I'll maintain a separate branch
Thanks Flask-RQ2 devs for the work on this project- it makes things look so much cleaner
from flask-rq2.
what I did was import rq from current instance and get the queue then enqueue the job
from .tasks import rq
q = rq.get_queue()
job = q.enqueue(calculate, args=(1, 2), kwargs={}, on_success=log_every_second)
from flask-rq2.
Related Issues (20)
- Flask-RQ2 depends on setuptools but setuptools is not listed as a requirement
- Flask-RQ2 is not compatible with click 8.0.0, required for Flask 2.0 HOT 4
- Why does func.cron() not duplicate jobs but rq.get_scheduler().cron() does? HOT 1
- Provide custom job ID?
- Support for rq version 1.8 - 1.10 HOT 1
- Add FlaskWorker
- Support rq worker --max-jobs flag
- How to run?
- New maintainer? HOT 1
- Remote workers
- Upcoming release of RQ 1.0
- Handling of `RQ_ASYNC` is confusing when using the application factory pattern
- Use @job decorator for class methods HOT 2
- Advantages over pure RQ HOT 5
- Launching flask-rq2 using supervisord HOT 2
- Redis sentinel mode connection support. HOT 1
- List running workers HOT 1
- RQ function that saves output to file saves same output even after function is modified.
- is this project still active? HOT 1
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 flask-rq2.