spack / spackbot

Spack maintainer bot 🤖
https://spack.github.io/spackbot/
Other
8 stars 12 forks source link

Spackbot should replay webhooks sent during a downtime #89

Open alecbcs opened 1 year ago

alecbcs commented 1 year ago

As is, Spackbot is loosing track of PRs when there's a downtime.

Instead we should implement a two phase checkpoint and restore system to "replay" webhooks that were missed by Spackbot.

  1. Checkpoint the last time that a request was processed to completion/record the request id.
  2. Upon startup of the app, query GitHub for all webhooks sent after the last recorded request and then ask GitHub to reply each webhook.