Skip to content

Commit 2212144

Browse files
authored
Revert 1070 (Celery tasks.py) (#1126)
* Revert #1070: tasks.py raises an import exception with Celery and conflicts with Huey.
1 parent fc291ce commit 2212144

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242
[deprecated use of oob](https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?m=1#disallowed-oob) with
4343
a final end date of 2022-10-03. If you still rely on oob support in django-oauth-toolkit, do not upgrade to this release.
4444

45+
## [1.7.1] 2022-03-19
46+
47+
### Removed
48+
* #1126 Reverts #1070 which incorrectly added Celery auto-discovery tasks.py (as described in #1123) and because it conflicts
49+
with Huey's auto-discovery which also uses tasks.py as described in #1114. If you are using Celery or Huey, you'll need
50+
to separately implement these tasks.
51+
4552
## [1.7.0] 2022-01-23
4653

4754
### Added

docs/management_commands.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,3 @@ To prevent the CPU and RAM high peaks during deletion process use ``CLEAR_EXPIRE
2121

2222
Note: Refresh tokens need to expire before AccessTokens can be removed from the
2323
database. Using ``cleartokens`` without ``REFRESH_TOKEN_EXPIRE_SECONDS`` has limited effect.
24-
25-
The ``cleartokens`` action can also be scheduled as a `Celery periodic task`_
26-
by using the ``clear_tokens`` task (automatically registered when using Celery).
27-
28-
.. _Celery periodic task: https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html

oauth2_provider/tasks.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)