Skip to content

Commit

Permalink
make sure queued reports get sent immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 26, 2022
1 parent f7e2ade commit 2db918b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IgnitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ protected function configureQueue(): void
// When using a sync queue this also reports the queued reports from previous exceptions.
$queue->before(function () {
$this->resetFlareAndLaravelIgnition();
app(Flare::class)->sendReportsImmediately();
});

// Send queued reports (and reset) after executing a queue job.
Expand Down Expand Up @@ -323,7 +324,7 @@ protected function setupOctane(): void
$this->app['events']->listen(TickReceived::class, function () {
$this->resetFlareAndLaravelIgnition();
});

$this->app['events']->listen(RequestTerminated::class, function () {
$this->resetFlareAndLaravelIgnition();
});
Expand Down

0 comments on commit 2db918b

Please sign in to comment.