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

Spackbot should replay webhooks sent during a downtime #89

Open
alecbcs opened this issue Jun 30, 2023 · 0 comments
Open

Spackbot should replay webhooks sent during a downtime #89

alecbcs opened this issue Jun 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@alecbcs
Copy link
Member

alecbcs commented Jun 30, 2023

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.
@alecbcs alecbcs added the enhancement New feature or request label Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant