Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
| <?php | <?php | ||||
| final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon { | final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon { | ||||
| protected function run() { | protected function run() { | ||||
| do { | do { | ||||
| PhabricatorCaches::destroyRequestCache(); | |||||
| $tasks = id(new PhabricatorWorkerLeaseQuery()) | $tasks = id(new PhabricatorWorkerLeaseQuery()) | ||||
| ->setLimit(1) | ->setLimit(1) | ||||
| ->execute(); | ->execute(); | ||||
| if ($tasks) { | if ($tasks) { | ||||
| $this->willBeginWork(); | $this->willBeginWork(); | ||||
| foreach ($tasks as $task) { | foreach ($tasks as $task) { | ||||
| Show All 39 Lines | |||||