mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-10-07 22:03:14 -04:00
fix(matching): retry PostgreSQL rematch deadlocks
This commit is contained in:
1 file changed
+5
@@ -2101,6 +2101,11 @@ public sealed class TrackMatchCommandService(
|
||||
{
|
||||
for (var current = exception; current != null; current = current.InnerException)
|
||||
{
|
||||
if (current is Npgsql.PostgresException
|
||||
{
|
||||
SqlState: Npgsql.PostgresErrorCodes.DeadlockDetected
|
||||
})
|
||||
return true;
|
||||
if (current is not Npgsql.PostgresException
|
||||
{
|
||||
SqlState: Npgsql.PostgresErrorCodes.UniqueViolation
|
||||
|
||||
Reference in new issue
Block a user