chore: add periodic cleanup job for stale lobbies #3
Labels
No labels
feature
multiplayer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: forgejo-lila/lila#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Context
Lobbies are currently persisted indefinitely. At low volume this is fine,
but finished and abandoned lobbies will accumulate over time.
Task
Add a periodic cleanup job that deletes lobbies older than X days
(e.g. 30) where status is 'finished' or 'waiting' (abandoned without starting).
Considerations
in-process scheduler (e.g. node-cron)
Dependencies
Depends on multiplayer slice being in production and generating real data.