4 ms·
Curious if there is a one liner that would cover 80%+ of the error handling: onerror add context and return ; onerror function(err) and return ;
by irq-1 5y ago
Curious if there is a one liner that would cover 80%+ of the error handling: onerror add context and return ; onerror function(err) and return ;
- sethammons 5y agoError handling differs. But we try to move up metrics and logs as high as possible in the call chain. Handling an error may be a retry with a strategy, moving items to different queues, changing concurrency, potentially triggering jobs to run, feeding different events to event streams, and, of course, retuning errors to callers so they can programmatically respond.