diff --git a/janus/tasks.py b/janus/tasks.py new file mode 100644 index 0000000..b2a85b6 --- /dev/null +++ b/janus/tasks.py @@ -0,0 +1,6 @@ +from celery import shared_task +from oauth2_provider.models import clear_expired + +@shared_task +def cleanup_token(): + clear_expired() \ No newline at end of file