Skip to content

Commit

Permalink
server: start purging web_sessions in secondary tenants
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Oct 23, 2022
1 parent 51bf1d7 commit 07ff98e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/server/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ func startTenantInternal(

httpServer.handleHealth(gwMux)

// Begin an async task to periodically purge old sessions in the system.web_sessions table.
if err := startPurgeOldSessions(ctx, authServer); err != nil {
return nil, nil, nil, "", "", err
}

// TODO(knz): Add support for the APIv2 tree here.
if err := httpServer.setupRoutes(ctx,
authServer, /* authnServer */
Expand Down

0 comments on commit 07ff98e

Please sign in to comment.