Skip to content

Commit

Permalink
Merge branch 'master' into 3.1-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Aug 30, 2023
2 parents 5668bd5 + 382a49d commit 884b02e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Adapter/Prometheus/MetricFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ protected function scrapeHandle(): void
}
}

if (CoordinatorManager::until(Coord::WORKER_EXIT)->isClosing()) {
return;
}

$server = $this->factory->make($host, (int) $port);

Coroutine::create(static function () use ($server) {
Expand Down

0 comments on commit 884b02e

Please sign in to comment.