Skip to content

Commit

Permalink
Revert #1070: tasks.py raises an import exception with Celery and con…
Browse files Browse the repository at this point in the history
…flicts with Huey.
  • Loading branch information
n2ygk committed Mar 19, 2022
1 parent fc291ce commit ca8c943
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
by [RFC 8252](https://datatracker.ietf.org/doc/html/rfc8252) "OAuth 2.0 for Native Apps" BCP. Google has
[deprecated use of oob](https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?m=1#disallowed-oob) with
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.
* #TBD Reverts #1070 which incorrectly added Celery auto-discovery tasks.py (as described in #1123) and because it conflicts
with Huey's auto-discovery which also uses tasks.py as described in #1114. If you are using Celery or Huey, you'll need
to separately implement these tasks.

## [1.7.0] 2022-01-23

Expand Down
5 changes: 0 additions & 5 deletions docs/management_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ To prevent the CPU and RAM high peaks during deletion process use ``CLEAR_EXPIRE

Note: Refresh tokens need to expire before AccessTokens can be removed from the
database. Using ``cleartokens`` without ``REFRESH_TOKEN_EXPIRE_SECONDS`` has limited effect.

The ``cleartokens`` action can also be scheduled as a `Celery periodic task`_
by using the ``clear_tokens`` task (automatically registered when using Celery).

.. _Celery periodic task: https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html
8 changes: 0 additions & 8 deletions oauth2_provider/tasks.py

This file was deleted.

0 comments on commit ca8c943

Please sign in to comment.