Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Feb 14, 2024
1 parent 83c1b78 commit 307ad82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Commands/CheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ public function handle(
$instance = Str::random();

while (true) {
$now = CarbonImmutable::now();

if ($lastRestart !== $cache->store()->get('laravel:pulse:restart')) {
return self::SUCCESS;
}

$now = CarbonImmutable::now();

if ($lock?->get()) {
$pulse->rescue(fn () => $event->dispatch(new IsolatedBeat($now)));
$event->dispatch(new IsolatedBeat($now));
}

$pulse->rescue(fn () => $event->dispatch(new SharedBeat($now, $instance)));
$event->dispatch(new SharedBeat($now, $instance));

$pulse->ingest();

Expand Down

0 comments on commit 307ad82

Please sign in to comment.