8000 Cancel pending request in flush · symfony/symfony@141971b · GitHub
[go: up one dir, main page]

Skip to content

Commit 141971b

Browse files
committed
Cancel pending request in flush
1 parent c8f000a commit 141971b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Messenger/Transport/SqsExt/Connection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ public function requeue(string $id, int $delay = 0): void
240240

241241
public function requeuePrefetchedMessages(): void
242242
{
243+
if ($this->currentResponse !== null) {
244+
$this->currentResponse->cancel();
245+
}
246+
243247
foreach ($this->getPendingMessages() as $message) {
244248
$this->requeue($message['id']);
245249
}

0 commit comments

Comments
 (0)
0