跳转到主要内容

数据库支持的异步任务队列

项目描述

======================= Django Background Tasks

.. 图像:: https://travis-ci.org/arteria/django-background-tasks.svg?branch=master :target: https://travis-ci.org/arteria/django-background-tasks :alt: 构建状态 .. 图像:: https://coveralls.io/repos/arteria/django-background-tasks/badge.svg?branch=master :target: https://coveralls.io/repos/arteria/django-background-tasks/badge.svg?branch=master&service=github :alt: 覆盖率状态 .. 图像:: https://readthedocs.org/projects/django-background-tasks/badge/?version=latest :target: http://django-background-tasks.readthedocs.io/en/latest/?badge=latest :alt: 文档状态 .. 图像:: https://img.shields.io/pypi/v/django-background-tasks.svg :target: https://pypi.python.org/pypi/django-background-tasks :alt: PyPI

Django Background Task 是 Django 的数据库后端工作队列,松散地基于 Ruby 的 DelayedJob_ 库。此项目是从 lilspikey_ 的 django-background-task 中采用并改编的。

.. _Ruby's DelayedJob: https://github.com/tobi/delayed_job .. _lilspikey: https://github.com/lilspikey/

为了避免 PyPI 上的冲突,我们将名称更改为 django-background-tasks(复数)。为了从 django-background-task 无缝升级到 django-background-tasks,内部模块结构保持不变。

在 Django Background Task 中,所有任务都实现为函数(或任何其他可调用对象)。

使用后台任务有两个部分

  • 创建任务函数并将它们注册到调度程序
  • 设置 cron 任务(或长期运行进程)以执行任务

文档

请参阅 阅读文档_。

.. _阅读文档: http://django-background-tasks.readthedocs.io/en/latest/

捐赠

django-background-tasks 是免费软件。如果您发现它很有用并想回馈,请考虑使用 Bitcoin_ 或 Paypal_ 进行捐赠。谢谢!

.. _Bitcoin: https://blockchain.info/payment_request?address=34vD9fADYX9QAcMfJUB4c2pYd19SG2toZ9 .. _PayPal: https://www.paypal.me/arteriagmbh

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源代码分发

django_background_tasks-1.2.8.tar.gz (21.3 kB 查看哈希值)

上传时间

构建分发

django_background_tasks-1.2.8-py3-none-any.whl (25.2 kB 查看哈希值)

上传于 Python 3

由以下组织支持