Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Delay pushing jobs to queue until database transactions are committed #35422

Merged
merged 10 commits into from
Dec 9, 2020
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
themsaid committed Nov 30, 2020
commit 399672c2e42aee28b6524d1300339aadbce762a5
3 changes: 1 addition & 2 deletions tests/Integration/Queue/QueueConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Illuminate\Tests\Integration\Queue;

use Aws\Sqs\Exception\SqsException;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Database\DatabaseTransactionsManager;
Expand Down Expand Up @@ -53,7 +52,7 @@ public function testJobWillGetDispatchedInsideATransactionWhenExplicitlyIndicate

try {
Bus::dispatch((new QueueConnectionTestJob)->beforeCommit());
} catch (SqsException $e) {
} catch (\Throwable $e) {
// This job was dispatched
}
}
Expand Down