bitter-orange-8782
09/05/2023, 2:14 PMflat-television-23413
09/05/2023, 4:04 PMhow i can distinguish between those exceptions?I don't believe the existing catch + retry functionality is aware of exception type. But you can do in the step func code as next answer suggests.
can i retry based on specific exception (or at least not retry based on specific exception)?You could have try catch block in the step func code. If a specific exception is found, then propagate the error and let metaflow catch + retry do its thing. If another kind of exception is found you can log it and do whatever else e.g., continue or stop the flow execution.
bitter-orange-8782
09/06/2023, 4:49 PMflat-television-23413
09/06/2023, 9:43 PM