Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ func runBotCoordinators(
defer cleanupTicker.Stop()

// Run cleanup once on startup
//nolint:contextcheck // Background cleanup should complete even during shutdown
go func() {
if err := stateStore.Cleanup(context.Background()); err != nil {
slog.Warn("initial state cleanup failed", "error", err)
Expand Down Expand Up @@ -764,6 +765,7 @@ func runBotCoordinators(

case <-cleanupTicker.C:
// Periodic cleanup of old state data
//nolint:contextcheck // Background cleanup should complete even during shutdown
go func() {
if err := stateStore.Cleanup(context.Background()); err != nil {
slog.Warn("state cleanup failed", "error", err)
Expand Down
Loading
Loading