Skip to main content

Distributed Task Queue.

Project description

https://docs.celeryq.dev/en/latest/_images/celery-banner-small.png

BSD License Celery can be installed via wheel Supported Python versions.

Version:

1.1.26

Web:

http://celeryproject.org/

Download:

https://pypi.org/project/deepfos-celery/

Source:

https://gitee.com/python-development-team/deepfos-celery/

Keywords:

task, queue, job, async, rabbitmq, amqp, redis, python, distributed, actors

What is this?

本项目基于 celery-5.0.5 开发,主要功能:

  • 添加 asyncio 支持,更容易集成到异步web框架

  • 支持 redis 集群

注:项目是 ``celery`` 的超集,但并非所有功能都支持 ``asyncio`` ,并且目前仅完成了 ``redis`` 作为 ``broker`` 和 ``backend`` 的支持。

Get Started

创建任务和官方 celery 一样:

from celery import Celery

app = Celery('hello', broker='redis://:@localhost/')

@app.task(aio_variant=True)
def hello():
    return 'hello world'

但增加了 aio_variant 这一参数,相较于普通的任务发送和获取结果的方式:

task = hello.apply_async()
result = task.get()

可以使用:

task = await hello.aio.apply_async()
result = await task.get()

注意

这不只是一个简单的语法糖,而是确实使用 aioredis 替换了原有 redis-py 的同步网络请求。

License

This software is licensed under the New BSD License. See the LICENSE file in the top distribution directory for the full license text.

Project details


Download files

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

Source Distribution

deepfos_celery-1.1.30.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepfos_celery-1.1.30-py3-none-any.whl (457.3 kB view details)

Uploaded Python 3

File details

Details for the file deepfos_celery-1.1.30.tar.gz.

File metadata

  • Download URL: deepfos_celery-1.1.30.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for deepfos_celery-1.1.30.tar.gz
Algorithm Hash digest
SHA256 7f07dda0d53a76e38bfd6f75821d79db7a6b6e88af9de6cda5cd54612c4436ea
MD5 172e9ccc8b9c6b00d8d0a104c24eb761
BLAKE2b-256 055c12c277ae8dff16e330ff3256e441c85ed1e0d37d84121996e91d9244a42e

See more details on using hashes here.

File details

Details for the file deepfos_celery-1.1.30-py3-none-any.whl.

File metadata

File hashes

Hashes for deepfos_celery-1.1.30-py3-none-any.whl
Algorithm Hash digest
SHA256 4ab28a1713ea2aa0d531564a851d56affba61a8a45b1c45eb8f211e47fe81001
MD5 b247cc746aefe1b65f855d38d6523c34
BLAKE2b-256 1536dea3a1370b570e8343ddda41e435f6720d747ebe9ef4fbe1641359f2cc3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page