conference-bot icon indicating copy to clipboard operation
conference-bot copied to clipboard

If the bot is killed during processing of a Q&A scoreboard vote or question, it will skip that event the next time it is started

Open squahtx opened this issue 3 years ago • 0 comments

matrix-bot-sdk persists its sync token so that it can pick up events from where it left off once restarted. Currently, the next sync token is persisted after a sync completes but before the conference bot has processed the new events: https://github.com/turt2live/matrix-bot-sdk/blob/46fc4273b8116b649cfd43049a7975efb6f61774/src/MatrixClient.ts#L642-L654

This is a good thing as it means that the bot won't get stuck in a restart loop if it crashes while processing certain events. It also means that in the rare case where the bot is killed while processing a scoreboard vote or question, that vote or question will be missed once the bot has restarted, which is less desirable.

squahtx avatar Jan 25 '22 17:01 squahtx