数据库支持的异步任务队列
snabb-django-background-tasks的Python项目详细描述
#django后台任务
[![生成状态](https://travis-ci.org/arteria/django-background-tasks.svg?branch=master)](https://travis-ci.org/arteria/django-background-tasks) [![文档状态](https://readthedocs.org/projects/django-background-tasks/badge/?version=latest)](http://django-background-tasks.readthedocs.io/en/latest/?徽章=最新) [![pypi](https://img.shields.io/pypi/v/django-background-tasks.svg)](https://pypi.python.org/pypi/django-background-tasks)
#重要的 这是orignal fork的一个fork,用于添加缺少的migrations文件夹,因此在引用此库时不必运行makemigrations。
#原始文件 django background task是django的一个基于数据库的工作队列,松散地基于[ruby的delayedjob](https://github.com/tobi/delayed_job)库。这个项目是采用并改编自[lilspegy](https://github.com/lilspikey/)django后台任务。
为了避免pypi上的冲突,我们将其重命名为django background tasks(复数)。为了方便地从django后台任务升级到django后台任务,内部模块结构没有受到影响。
在django后台任务中,所有任务都作为函数(或任何其他可调用的)实现。
使用后台任务有两部分:
- 创建任务函数并将其注册到调度程序中
- 设置cron任务(或长时间运行的进程)以执行任务
##文件 见http://django-background-tasks.readthedocs.io/en/latest/。