More graphs

This commit is contained in:
MasseR committed 2026-09-16 14:42:31 +03:00
1 parent 2cb8035ef4
commit 213f9d5d2a
2 files changed
+157 -33

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ import Data.Void (Void)
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Catch (MonadCatch, MonadMask)
import Katip (KatipContext, logFM, ls)
import Control.Retry (RetryStatus(..), recovering, limitRetries, fullJitterBackoff)
import Control.Retry (RetryStatus(..), recovering, fullJitterBackoff, capDelay)
import Control.Monad (when)
import Katip.Core (Severity(..))
@@ -49,4 +49,4 @@ supervised name action = checkpoint (Annotation name) $ do
[ \_retryStatus -> Handler $ \(_ :: Fatal) -> pure False
, \_retryStatus -> Handler $ \(_ :: SomeException) -> pure True
]
retryPolicy = fullJitterBackoff 50000 <> limitRetries 5
retryPolicy = capDelay (15 * 1_000_000) (fullJitterBackoff 50_000)