Carry the event's receipt time into every delivery (closes #257)
All checks were successful
check / check (push) Successful in 3m4s

This commit was merged in pull request #297.
This commit is contained in:
2026-08-24 06:44:24 +02:00
parent b2c9acdaa6
commit 5976a4a98f
3 changed files with 473 additions and 13 deletions

View File

@@ -151,6 +151,16 @@ func (e *Engine) ExportProcessRetryTask(
e.processRetryTask(ctx, task)
}
// ExportEventForTask exposes the event reconstruction the delivery
// paths run: buildEventFromTask followed by hydrateEvent.
func (e *Engine) ExportEventForTask(
webhookDB *gorm.DB, task *Task,
) (database.Event, error) {
return e.hydrateEvent(
webhookDB, buildEventFromTask(task), task,
)
}
// ExportProcessDelivery exposes processDelivery.
func (e *Engine) ExportProcessDelivery(
ctx context.Context,