From a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 5 Nov 2022 22:49:25 -0600 Subject: Queuing system and lazy profile fetch --- takahe/settings.py | 2 ++ takahe/urls.py | 3 +++ 2 files changed, 5 insertions(+) (limited to 'takahe') diff --git a/takahe/settings.py b/takahe/settings.py index 3e2b75a..26fd705 100644 --- a/takahe/settings.py +++ b/takahe/settings.py @@ -25,6 +25,7 @@ INSTALLED_APPS = [ "core", "statuses", "users", + "miniq", ] MIDDLEWARE = [ @@ -113,3 +114,4 @@ CRISPY_FAIL_SILENTLY = not DEBUG SITE_NAME = "takahē" DEFAULT_DOMAIN = "feditest.aeracode.org" ALLOWED_DOMAINS = ["feditest.aeracode.org"] +IDENTITY_MAX_AGE = 24 * 60 * 60 diff --git a/takahe/urls.py b/takahe/urls.py index d6e4d8f..f8bff07 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -2,6 +2,7 @@ from django.contrib import admin from django.urls import path from core import views as core +from miniq import views as miniq from users.views import auth, identity urlpatterns = [ @@ -19,6 +20,8 @@ urlpatterns = [ path("identity/create/", identity.CreateIdentity.as_view()), # Well-known endpoints path(".well-known/webfinger", identity.Webfinger.as_view()), + # Task runner + path(".queue/process/", miniq.QueueProcessor.as_view()), # Django admin path("djadmin/", admin.site.urls), ] -- cgit v1.2.3