-
Notifications
You must be signed in to change notification settings - Fork 442
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
lichess-bot issues new challenges before cancelling old ones, allowing too many concurrent games, which time out #991
Comments
I think both issues are related to the
I've filed an issue with the Lichess developers. Let's see if fixing that fixes this. |
The Lichess API was updated so that the JSON response to creating a challenge is no longer nested under a single `challenge` heading. All information has been moved to the top level. This commit aligns lichess-bot with the API change. Closes lichess-bot-devs#991.
I've created a PR (#992) to address this issue. Please try it and let me know if it fixes the problem. |
The Lichess API was updated so that the JSON response to creating a challenge is no longer nested under a single `challenge` heading. All information has been moved to the top level. This commit aligns lichess-bot with the API change. Closes #991.
Please reopen if this issue persists. |
Describe the bug
lichess-bot seems to issue new challenges before cancelling old ones. This allows one opponent to accept a newer challenge, starting a game. While this game is in progress, another opponent can accept the older challenge, creating a second game that appears to be (correctly) ignored by lichess-bot. While the existing game is played, the new game eventually times out and is aborted.
Observed behavior: lichess-bot allows more games to start than it will play.
Expected behavior: lichess-bot limits open challenges to
concurrency + 1
.config.yml currently has
concurrency: 0
andallow_during_games: false
.(side suggestion: in future configs, change:
concurrency: 0 # Number of games to play simultaneously.
to:
concurrency: 1 # Maximum number of games to play at once. The min is 1.
)The timeline, per recent.log (attached):
osCQjeIm
).5Sz1P70f
). The game starts at 18:54 and completes at 19:00.CdRG6Obm
).abort_time: 30
in config.yaml ("Game aborted" on lichess.org).It may be a separate issue, but lichess-bot seems to stop receiving or accepting challenges at this point, and just idles until it is restarted.
Logs
recent.log
Desktop:
venv\Scripts\activate
,py lichess-bot.py
)The text was updated successfully, but these errors were encountered: