Async tenant provisioning (frontend UX) #52
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Tenant provisioning is synchronous — the Create Tenant button blocks for ~30-60s while the backend provisions Docker containers, waits for health checks, pushes license and OIDC config.
Expected
Current behavior
The Create Tenant form hangs with no feedback until provisioning completes, then redirects to the detail page.
Scope
Frontend-only change. Backend already sets status=PROVISIONING before provisioning and updates to ACTIVE on success.
Fixed in
252c18b.Backend: Extracted Docker provisioning (containers, health check, license push, OIDC config) into an
@Asyncmethod. The API now returns immediately after creating the tenant record (PROVISIONING), Logto org, admin user, and license. Provisioning runs in a background thread and updates status to ACTIVE on success or setsprovisionErroron failure.Frontend:
refetchIntervalcallback)