Page MenuHomePhabricator

D17433.id41916.diff
No OneTemporary

D17433.id41916.diff

diff --git a/src/daemon/PhutilDaemonPool.php b/src/daemon/PhutilDaemonPool.php
--- a/src/daemon/PhutilDaemonPool.php
+++ b/src/daemon/PhutilDaemonPool.php
@@ -178,7 +178,14 @@
$daemon->update();
if ($daemon->isDone()) {
- unset($daemons[$key]);
+ unset($this->daemons[$key]);
+
+ $this->logMessage(
+ 'POOL',
+ pht(
+ 'Autoscale pool "%s" scaled down to %s daemon(s).',
+ $this->getPoolLabel(),
+ new PhutilNumber(count($this->daemons))));
}
}
@@ -203,7 +210,7 @@
$this->logMessage(
'POOL',
pht(
- 'Autoscale pool "%s" already at maximum size (%d of %d).',
+ 'Autoscale pool "%s" already at maximum size (%s of %s).',
$this->getPoolLabel(),
new PhutilNumber(count($daemons)),
new PhutilNumber($max_size)));

File Metadata

Mime Type
text/plain
Expires
Mar 24 2025, 10:49 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707396
Default Alt Text
D17433.id41916.diff (886 B)

Event Timeline