Skip to content

Commit

Permalink
Only use JobRetryRequested in Laravel 8
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Dec 31, 2021
1 parent a83568d commit e442bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bootstrappers/QueueTenancyBootstrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected static function setUpJobListener($dispatcher, $runningTests)
});

if (Str::startsWith(app()->version(), '8')) {
// queue:retry tenancy is only supported in Laravel 8
// JobRetryRequested only exists since Laravel 8
$dispatcher->listen(JobRetryRequested::class, function ($event) use (&$previousTenant) {
$previousTenant = tenant();

Expand Down

0 comments on commit e442bdb

Please sign in to comment.