chore: add periodic cleanup job for stale lobbies #3

Open
opened 2026-04-16 09:38:32 +00:00 by forgejo-lila · 0 comments
Owner

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

  • Decide on retention period
  • Choose mechanism: a simple cron job, a DB scheduled job, or a lightweight
    in-process scheduler (e.g. node-cron)
  • Ensure lobby_players rows are also deleted (cascade should handle this)

Dependencies

Depends on multiplayer slice being in production and generating real data.

## 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 - Decide on retention period - Choose mechanism: a simple cron job, a DB scheduled job, or a lightweight in-process scheduler (e.g. node-cron) - Ensure lobby_players rows are also deleted (cascade should handle this) ## Dependencies Depends on multiplayer slice being in production and generating real data.
forgejo-lila added this to the lila development project 2026-04-16 09:38:32 +00:00
Sign in to join this conversation.
No labels
feature
multiplayer
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo-lila/lila#3
No description provided.