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.5]
- Fix graceful shutdown
[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.5.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for celery-pool-asyncio-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de7ca033798053e06ceeb3d9a66457a1adbb5e569431b08e0d66e0f8f336ebc3 |
|
MD5 | feeb5e30bf042e5fa2e162e48d1b729e |
|
BLAKE2b-256 | b01b7d4901f756d8335d201fc47b9ebfc4249562474bd8d54c90e537ca9140ed |
Close
Hashes for celery_pool_asyncio-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52d4ef4dcaf36ef4f581e75b87788e46b2bfb3ccb867e833ffdfbed16d719016 |
|
MD5 | 6e691eb97e0bb3441c1ff7329dfb5f7e |
|
BLAKE2b-256 | dcb86b8e092f9b262625369c47a9894edf83945ac52da36fd811c22cb51d1f73 |