Skip to content

OUT-3241: debounce webhook to control flooded queues in trigger.dev#93

Open
SandipBajracharya wants to merge 3 commits intomainfrom
OUT-3241-re
Open

OUT-3241: debounce webhook to control flooded queues in trigger.dev#93
SandipBajracharya wants to merge 3 commits intomainfrom
OUT-3241-re

Conversation

@SandipBajracharya
Copy link
Collaborator

Changes

  • create migration to add pendingWebhook and lastWebhookSyncedAt column
  • trigger.dev schedular to auto sync the pending webhooks for the account/portal
  • flag pending webhook if the portal is synced recently
  • process sync for the portal in an interval of an hour

Testing Criteria

Loom

….dev

- [x] create migration to add pendingWebhook and lastWebhookSyncedAt column
- [x] trigger.dev schedular to auto sync the pending webhooks for the account/portal
- [x] flag pending webhook if the portal is synced recently
- [x] process sync for the portal in an interval of an hour
- [x] update debounce webhook window to 5 mins
- [x] wait for files changes before updating dbx cursor
… logic

- [x] add lastWebhookSyncStartedAt column in dropboxConnections
- [x] update pendingWebhooks flag to true before syncing files
@linear
Copy link

linear bot commented Mar 23, 2026

@vercel
Copy link

vercel bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dropbox-integration Ready Ready Preview, Comment Mar 23, 2026 0:27am

Request Review

Copy link

@priosshrsth priosshrsth left a comment

Choose a reason for hiding this comment

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

lgtm. We can assess if there is better sweet point for batching duration other than 5 mins later on.

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.

3 participants