Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
| Show All 18 Lines | do { | ||||
| $this->log(pht('Working on task %d (%s)...', $id, $class)); | $this->log(pht('Working on task %d (%s)...', $id, $class)); | ||||
| $task = $task->executeTask(); | $task = $task->executeTask(); | ||||
| $ex = $task->getExecutionException(); | $ex = $task->getExecutionException(); | ||||
| if ($ex) { | if ($ex) { | ||||
| if ($ex instanceof PhabricatorWorkerPermanentFailureException) { | if ($ex instanceof PhabricatorWorkerPermanentFailureException) { | ||||
| // NOTE: Make sure these reach the daemon log, even when not | // NOTE: Make sure these reach the daemon log, even when not | ||||
| // running in "phd.verbose" mode. See T12803 for discussion. | // running in verbose mode. See T12803 for discussion. | ||||
| $log_exception = new PhutilProxyException( | $log_exception = new PhutilProxyException( | ||||
| pht( | pht( | ||||
| 'Task "%s" encountered a permanent failure and was '. | 'Task "%s" encountered a permanent failure and was '. | ||||
| 'cancelled.', | 'cancelled.', | ||||
| $id), | $id), | ||||
| $ex); | $ex); | ||||
| phlog($log_exception); | phlog($log_exception); | ||||
| } else if ($ex instanceof PhabricatorWorkerYieldException) { | } else if ($ex instanceof PhabricatorWorkerYieldException) { | ||||
| Show All 34 Lines | |||||