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

NONE: Update our webhook route to send a status code back immediately #207

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

Roystbeef
Copy link
Collaborator

We were noticing a lot of retries when handling webhook events. This is because Figma's webhook service has a 4 second timeout which the asynchronous code we were running in this route was blocking.

To address this, we are updating the route to respond with a 200 status code in the route after starting our asynchronous logic

Unfortunately, as part of this, we do need to add some specific testing logic in order for our integration tests to properly wait for all the asynchronous logic succeeds.

Test Plan

  • Assert that CI passes
  • Assert that the webhook route responds a lot faster now

Copy link
Collaborator

@akostevich-atlassian akostevich-atlassian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, see the comments.

@Roystbeef Roystbeef merged commit 76f141b into main Jan 30, 2024
2 checks passed
@Roystbeef Roystbeef deleted the roy/webhook-route-duration branch January 30, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants