Skip to content

Commit

Permalink
add cleanup task
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Leinfelder committed Oct 13, 2020
1 parent db9fbb6 commit f095070
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions janus/tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from celery import shared_task
from oauth2_provider.models import clear_expired

@shared_task
def cleanup_token():
clear_expired()

0 comments on commit f095070

Please sign in to comment.