Support a large number of subtasks for celery framework
Project description
celery-dispatcher
Installation
pip install celery-dispatcher
Usage
from celery import
from celery_dispatcher import dispatch
def handle_result(root_id, task_id, retval, **kwargs):
print(retval)
@shared_task
def sqrt(i):
return i * i
@dispatch(receiver=handle_result)
@shared_task
def calc():
for i in range(10):
yield sqrt, (i,)
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
Built Distribution
Close
Hashes for celery_dispatcher-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff8d1572edead17c727e3154965f3adfa71ee54a8b457da3dab0ada20619270 |
|
MD5 | 6ee07df64d83f91708c41a8fef9178e7 |
|
BLAKE2b-256 | f6ff51fee4c36a1e7bb6538cd5054f02f1ecc0f07b60371112928d5d129ddd53 |