Leaderboard doesn't persist in docker #123

Closed
opened 2026-10-05 01:24:42 +02:00 by adam · 2 comments
Owner

When running the bot in docker the leaderboard never gets persisted since the exit handler is never hit.

So leaderboards reset with every restart.

When running the bot in docker the leaderboard never gets persisted since the [exit handler](https://github.com/SpudGunMan/meshing-around/blob/530d78482a0cc4b1bf9c81f8a7e4410bcd32112b/modules/system.py#L2428) is never hit. So leaderboards reset with every restart. <!-- github-sync-id:3800132991 -->
adam closed this issue 2026-10-05 01:24:42 +02:00
Author
Owner

I agree. This is happening on my end too.

I agree. This is happening on my end too. <!-- github-comment-id:3733294585 -->
Author
Owner

@SpudGunMan I resolved this in my deployment by adding saveLeaderboard() to the watchdog loop and removing the logging statement, but I suspect this isn't ideal.

Perhaps a persistence loop should be added to make sure all the various data sets get persisted on a schedule?

@SpudGunMan I resolved this in my deployment by adding `saveLeaderboard()` to the watchdog loop and removing the logging statement, but I suspect this isn't ideal. Perhaps a persistence loop should be added to make sure all the various data sets get persisted on a schedule? <!-- github-comment-id:3733677585 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#123