mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 18:10:53 +01:00
(stable) Make the default Trigger hibernation 3 minutes instead of 5 seconds
The `min()` vs `max()` fix in D17560 meant that the Trigger daemon only hibernates for 5 seconds, so we do a full GC sweep every 5 seconds. This ends up eating a fair amount of CPU for no real benefit. The GC cursors should move to persistent storage, but just bump this default up in the meantime. Auditors: chad
This commit is contained in:
parent
6f1e2d8055
commit
b2c029cbad
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ final class PhabricatorTriggerDaemon
|
|||
* @return int Number of seconds to sleep for.
|
||||
*/
|
||||
private function getSleepDuration() {
|
||||
$sleep = 5;
|
||||
$sleep = phutil_units('3 minutes in seconds');
|
||||
|
||||
$next_triggers = id(new PhabricatorWorkerTriggerQuery())
|
||||
->setViewer($this->getViewer())
|
||||
|
|
Loading…
Reference in a new issue