Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
.. image:: https://docs.celeryq.dev/en/latest/_images/celery-banner-small.png
|license| |wheel| |pyversion|
:Version: 1.1.21 :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
本项目基于 celery-5.0.5
开发,主要功能:
asyncio
支持,更容易集成到异步web框架redis
集群注:项目是 celery
的超集,但并非所有功能都支持 asyncio
,并且目前仅完成了 redis
作为 broker
和 backend
的支持。
创建任务和官方 celery
一样:
.. code-block:: python
from celery import Celery
app = Celery('hello', broker='redis://:@localhost/')
@app.task(aio_variant=True)
def hello():
return 'hello world'
但增加了 aio_variant
这一参数,相较于普通的任务发送和获取结果的方式:
.. code-block:: python
task = hello.apply_async()
result = task.get()
可以使用:
.. code-block:: python
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.
.. # vim: syntax=rst expandtab tabstop=4 shiftwidth=4 shiftround
.. |license| image:: https://img.shields.io/pypi/l/celery.svg :alt: BSD License :target: https://opensource.org/licenses/BSD-3-Clause
.. |wheel| image:: https://img.shields.io/pypi/wheel/celery.svg :alt: Celery can be installed via wheel :target: https://pypi.org/project/celery/
.. |pyversion| image:: https://img.shields.io/pypi/pyversions/celery.svg :alt: Supported Python versions. :target: https://pypi.org/project/celery/
FAQs
Distributed Task Queue.
We found that deepfos-celery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.