Comments (1)
You can take a look at #1697 and #1405 which are related. I haven't looked into this for a while now since I've been mostly working with sync code lately, but I think you have two options: (1) customize your worker to be async and have it's own loop or (2) customize the job to handle async functions. I've ran a couple of experiments with this in the past, and it's something I would like to work on the future, but it will take a while unfortunately.
from rq.
Related Issues (20)
- RQ asynchronous function does not execute
- `perform_job` calls `push_connection` which is a deprecated function
- ValueError: Unknown type <class 'NoneType'> HOT 1
- `None` getting added to failed registry HOT 11
- Worker stucked in busy state after pod restart.
- AttributeError: 'coroutine' object has no attribute 'settimeout' HOT 2
- Too many open files with async functions HOT 1
- cli requeue can fail if jobs reach TTL HOT 2
- Error: `Moving job to FailedJobRegistry (Work-horse terminated unexpectedly; waitpid returned None; )` HOT 2
- worker : Redis connection timeout, quitting HOT 1
- callback functions don't receive a complete rq.job.Job object when running async
- example of rq with flask blueprint app HOT 8
- Suppot running worker behind twemproxy, 'nutcracker' HOT 1
- Configurable Behavior for Enqueuing Dependent Jobs on Job Failure HOT 1
- Cannot queue classmethods from child classes HOT 1
- 1.15.1: pytest is failin in almost every unit with `redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots` HOT 3
- Support for functools.partial in Callback Class HOT 1
- Work-horse Terminated Unexpectedly With Error Code 11 HOT 1
- Understanding `Worker` vs `SimpleWorker` TTL 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 rq.