-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
Description
Background
Currently, when the Bidder encounters errors while updating execution state, these errors are propagated to the ExecutionUpsertHandler. While the event watcher has a retry mechanism (3 retries before skipping), we need more sophisticated error handling to:
- Avoid unnecessary retries for unrecoverable errors
- Log appropriate error messages
- Publish relevant metrics for monitoring
Links
- Related Issue: Implement error handling when updating execution state in Bidder #4684
- Discussion: async execution handling #4683 (comment)
- Code Reference:
func (h *ExecutionUpsertHandler) HandleEvent(ctx context.Context, event watcher.Event) error {
Requirements
- Implement error handling logic in ExecutionUpsertHandler
- Add appropriate logging for different error scenarios
- Add metrics to track error occurrences and types
- Document the error handling strategy
Requested by @wdbaruni