Celery pool to run coroutine tasks
Project description
Celery Pool AsyncIO
- Free software: Apache Software License 2.0
Features
import asyncio
from celery import Celery
app = Celery()
@app.task(
bind=True,
soft_time_limit=None, # temporary unimplemented. You can help me
time_limit=300, # raises futures.TimeoutError on timeout
)
async def my_task(self, *args, **kwargs):
await asyncio.sleep(5)
@app.task
async def my_simple_task(*args, **kwargs):
await asyncio.sleep(5)
Then run celery:
$ celery worker -A hello_async_celery.app -P celery_pool_asyncio:TaskPool
Changelog
[0.1.4]
- Fix monkey: another function must be patched
[0.1.3]
- Add changelog
- Append documentation
[0.1.2]
- Add monkey patcher to make brocker IO operations nonblocking
[0.1.1]
- Refactor code
- Fix found errors
[0.1.0]
- Initial commit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
celery-pool-asyncio-0.1.4.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for celery-pool-asyncio-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5337a42c8ef184d9693aecfd2386e700b71b382e30fc8cdc1d8fa7e0cb6f07 |
|
MD5 | 07397a27e80b867add0444e254292530 |
|
BLAKE2b-256 | bde23034f72f58d21f51bcb4ca257eb3582d70c742e0bbf222cfd657becb7121 |
Close
Hashes for celery_pool_asyncio-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe7ba455f0131afef24a3fda3aedf9eabdb9df6229dd40bd63055e6930f5866 |
|
MD5 | a1b35a67e50aa97f0796c86e1dabecd3 |
|
BLAKE2b-256 | 068a247b59db21e5a1be8818057b82718ef0ace0324fc11645f411ec59722294 |