saq icon indicating copy to clipboard operation
saq copied to clipboard

feat: Allow defining non-error exceptions for control flow

Open ditsuke opened this issue 1 month ago • 3 comments

Summary

In saq, retry policies and exceptions can be used as a form of control flow. For example, internally, we use a RetryException to indicate that a task should be retried at a later point. However, right now saq will still log the exception as an error which makes for some log noise. Here I propose to introduce a way to pass a set of exception types that saq will not log as errors.

ditsuke avatar Dec 01 '25 07:12 ditsuke