Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed

2.0 #41

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add upgrade notes to README
  • Loading branch information
j4mie committed Apr 5, 2021
commit 54664b29d1b5cf152cc0d473aef5c688cf64a0ec
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
django-db-queue
==========
[![Build Status](https://travis-ci.org/dabapps/django-db-queue.svg)](https://travis-ci.org/dabapps/django-db-queue)
[![pypi release](https://img.shields.io/pypi/v/django-db-queue.svg)](https://pypi.python.org/pypi/django-db-queue)

Simple databased-backed job queue. Jobs are defined in your settings, and are processed by management commands.
Simple database-backed job queue. Jobs are defined in your settings, and are processed by management commands.

Asynchronous tasks are run via a *job queue*. This system is designed to support multi-step job workflows.

Supported and tested against:
- Django 1.11 and 2.2
- Python 3.5, 3.6, 3.7 and 3.8

This package may still work with older versions of Django and Python but they aren't explicitly supported.
- Django 3.1 and 3.2
- Python 3.6, 3.7, 3.8 and 3.9

## Getting Started

Expand All @@ -28,6 +25,17 @@ Add `django_dbq` to your installed apps
'django_dbq',
)

### Upgrading from 1.x to 2.x

This library underwent significant changes in its 2.x release, which meant migrating automatically was not practical. Before upgrading, you should open a database shell and run the following commands. Note that this will **delete all your existing jobs**, so you should ensure all jobs are completed before proceeding, and make sure you don't need any data at all from the jobs table.

```
DROP TABLE django_dbq_job;
DELETE FROM django_migrations WHERE app='django_dbq';
```

Then, run `python manage.py migrate` to recreate the jobs table.

### Describe your job

In e.g. project.common.jobs:
Expand Down