Skip to content

Commit ca8c943

Browse files
committed
Revert #1070: tasks.py raises an import exception with Celery and conflicts with Huey.
1 parent fc291ce commit ca8c943

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141
by [RFC 8252](https://datatracker.ietf.org/doc/html/rfc8252) "OAuth 2.0 for Native Apps" BCP. Google has
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.
44+
* #TBD Reverts #1070 which incorrectly added Celery auto-discovery tasks.py (as described in #1123) and because it conflicts
45+
with Huey's auto-discovery which also uses tasks.py as described in #1114. If you are using Celery or Huey, you'll need
46+
to separately implement these tasks.
4447

4548
## [1.7.0] 2022-01-23
4649

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)