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 983e988 commit 83c1b78
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()) {
$event->dispatch(new IsolatedBeat($now));
$pulse->rescue(fn () => $event->dispatch(new IsolatedBeat($now)));
}

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

$pulse->ingest();

Expand Down

0 comments on commit 83c1b78

Please sign in to comment.