Skip to content

Conversation

@0x46616c6b
Copy link
Member

This pull request updates the pruning logic for webhook deliveries to ensure that only successful deliveries older than a certain date are deleted. It also updates the database schema and associated test to reflect this new behavior.

Pruning logic changes:

  • The PruneWebhookDeliveriesHandler now deletes only webhook deliveries where success = true and the dispatchedTime is before the specified cutoff.

Database schema updates:

  • Added a new composite index on the webhook_deliveries table for the columns dispatched_time and success to improve query performance for the updated pruning logic.

@0x46616c6b 0x46616c6b force-pushed the Prune-only-succesful-webhook-deliveries branch from 92ba92d to 65ddf28 Compare January 13, 2026 12:08
@sonarqubecloud
Copy link

@0x46616c6b 0x46616c6b merged commit dc1274b into main Jan 13, 2026
9 checks passed
@0x46616c6b 0x46616c6b deleted the Prune-only-succesful-webhook-deliveries branch January 13, 2026 13:57
@0x46616c6b 0x46616c6b changed the title 🚸 Prune only succesful webhook deliveries 🚸 Prune only successful webhook deliveries Jan 13, 2026
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