Skip to content

Conversation

@lenguyenthanh
Copy link
Member

@lenguyenthanh lenguyenthanh commented Mar 6, 2024

This is an effort in-order to save on-going games when we need to restart lila-fishnet (We mostly need this for re-deploy which is also quite rare).

The strategy is dumping all the on-going games to a file when it is being stop, and reading games from that file when start. Nothing should happen if it's failed to read/write from/to file except warning logs.

We can switch to redis or whatever later on, but this should work as it is.

TODO

  • path as config
  • Test for Task serde

@lenguyenthanh lenguyenthanh force-pushed the preserve-state-after-dead branch from 42fdad3 to 92ea099 Compare March 6, 2024 06:13
@lenguyenthanh lenguyenthanh force-pushed the preserve-state-after-dead branch from 92ea099 to 6b776ad Compare March 9, 2024 13:08
@lenguyenthanh lenguyenthanh marked this pull request as ready for review March 10, 2024 05:46
@lenguyenthanh lenguyenthanh merged commit 84c18e2 into master Mar 10, 2024
@lenguyenthanh lenguyenthanh deleted the preserve-state-after-dead branch March 10, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants