Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write final PGNs to files before quitting #993

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

MarkZH
Copy link
Collaborator

@MarkZH MarkZH commented Jul 21, 2024

Type of pull request:

  • Bug fix
  • Feature
  • Other

Description:

Prior to this change, pressing Ctrl-C to quit lichess-bot would skip writing the PGN records of any active games, even if the config said to wait for active games to finish. PGN records are now sent by a separate queue than the control stream events to make sure they are saved before quitting.

Related Issues:

N/A

Checklist:

  • I have read and followed the contribution guidelines.
  • I have added necessary documentation (if applicable).
  • The changes pass all existing tests.

Screenshots/logs (if applicable):

N/A

Prior to this change, pressing Ctrl-C to quit lichess-bot would skip
writing the PGN records of any active games, even if the config said to
wait for active games to finish. PGN records are now sent by a separate
queue than the control stream events to make sure they are saved before
quitting.
@MarkZH MarkZH changed the title Write final PGN to file before quitting Write final PGNs to files before quitting Jul 21, 2024
@AttackingOrDefending AttackingOrDefending merged commit f776356 into lichess-bot-devs:master Jul 22, 2024
15 checks passed
@MarkZH MarkZH deleted the pgn-queue branch July 22, 2024 08: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