@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Only hibernate the Taskmaster after 15 seconds of inactivity

Under some workloads, the taskmaster may hibernate and launch more rapidly
than it should. Require 15 seconds of inactivity before hibernating. Also
hibernate for longer.

Auditors: chad

+5 -2
+5 -2
src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
··· 44 44 $sleep = 0; 45 45 } else { 46 46 47 - if ($this->shouldHibernate(60)) { 48 - break; 47 + if ($this->getIdleDuration() > 15) { 48 + $hibernate_duration = phutil_units('3 minutes in seconds'); 49 + if ($this->shouldHibernate($hibernate_duration)) { 50 + break; 51 + } 49 52 } 50 53 51 54 // When there's no work, sleep for one second. The pool will