Skip to main content

Celery pool to run coroutine tasks

Project description

Celery Pool AsyncIO


  • Free software: Apache Software License 2.0


import asyncio
from celery import Celery

app = Celery()

    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)

async def my_simple_task(*args, **kwargs):
    await asyncio.sleep(5)

Then run celery:

$ celery worker -A -P celery_pool_asyncio:TaskPool



  • Cleanup tracer, use namespase where it possible


  • Refactor monkey, split it
  • Move patch_send_task to own function
  • Add patch_result_get to await AsyncResult.get


  • Avoid building trace twice
  • Also this small performance optimization fixed AsyncResult.get


  • Fix graceful shutdown


  • Fix monkey: another function must be patched


  • Add changelog
  • Append documentation


  • Add monkey patcher to make brocker IO operations nonblocking


  • Refactor code
  • Fix found errors


  • Initial commit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for celery-pool-asyncio, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size celery_pool_asyncio-0.1.8-py2.py3-none-any.whl (8.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size celery-pool-asyncio-0.1.8.tar.gz (11.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page