Skip to content

Commit

Permalink
[2.x] Reset scoped instances before running a new vapor job (laravel#183
Browse files Browse the repository at this point in the history
)

* reset scoped instances before running a new vapor job

* wip
  • Loading branch information
themsaid authored Nov 5, 2024
1 parent 51fc2ef commit af84861
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Queue/VaporWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class VaporWorker extends Worker
*/
public function runVaporJob($job, $connectionName, WorkerOptions $options)
{
app()->forgetScopedInstances();

pcntl_async_signals(true);

pcntl_signal(SIGALRM, function () use ($job) {
Expand Down

0 comments on commit af84861

Please sign in to comment.