online-go / gtp2ogs

GTP Wrapper to allow bots to interface with the Online-Go.com Server
MIT License
88 stars 29 forks source link

genmove not interupted by quit command, bot killed #402

Closed Dorus closed 1 year ago

Dorus commented 1 year ago

Today one of my bots was killed after 5 seconds while still working on the next move.

The problem is gtp doesn't allow interruption of a genmove command since it's an sync protocol.

For now i've bumped the quit_grace_period, but it would be nice if the quit command was more graceful when the bot is still busy from the previous genmove command.

anoek commented 1 year ago

If you want to allow for additional processing after a command, see the release_delay option, I believe this is what you're looking for.