File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ use MysqlDeadlocks\RetryHelper\DBTransactionRetryHelper as Retry;
1919$result = Retry::transactionWithRetry(function () {
2020 // Your DB logic here (queries, models, etc.)
2121 // Return any value and it will be returned from transactionWithRetry
22- }, maxRetries: 5 , retryDelay: 2, logFileName: 'mysql-deadlocks-log');
22+ }, maxRetries: 3 , retryDelay: 2, logFileName: 'mysql-deadlocks-log');
2323```
2424
2525Parameters:
26- - maxRetries: number of attempts (default 5 )
27- - retryDelay: base delay in seconds; actual wait uses exponential backoff with jitter (default 5 )
28- - logFileName: file prefix under storage/logs (default 'mysql-deadlocks- log')
26+ - maxRetries: number of attempts (default 3 )
27+ - retryDelay: base delay in seconds; actual wait uses exponential backoff with jitter (default 2 )
28+ - logFileName: file prefix under storage/logs/{today date} (default 'mysql-deadlocks. log')
2929
3030Notes:
3131- Non-deadlock QueryException is thrown immediately.
You can’t perform that action at this time.
0 commit comments