Fixing bug post-merge

This commit is contained in:
Matej Bačo
2025-02-03 11:03:58 +01:00
parent 9f9ce61c3a
commit 47f4e67a52
4 changed files with 21 additions and 5 deletions
+5
View File
@@ -144,6 +144,11 @@ class Executor
'x-opr-addressing-method' => 'broadcast'
], [], true, 30);
// Temporary fix for race condition
if($response['headers']['status-code'] === 500 && \str_contains($response['body']['message'], 'already in progress')) {
return true; // OK, removal already in progress
}
$status = $response['headers']['status-code'];
if ($status >= 400) {
$message = \is_string($response['body']) ? $response['body'] : $response['body']['message'];