Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
| Show All 23 Lines | do { | ||||
| if ($ex) { | if ($ex) { | ||||
| if ($ex instanceof PhabricatorWorkerPermanentFailureException) { | if ($ex instanceof PhabricatorWorkerPermanentFailureException) { | ||||
| throw new PhutilProxyException( | throw new PhutilProxyException( | ||||
| pht('Permanent failure while executing Task ID %d.', $id), | pht('Permanent failure while executing Task ID %d.', $id), | ||||
| $ex); | $ex); | ||||
| } else if ($ex instanceof PhabricatorWorkerYieldException) { | } else if ($ex instanceof PhabricatorWorkerYieldException) { | ||||
| $this->log(pht('Task %s yielded.', $id)); | $this->log(pht('Task %s yielded.', $id)); | ||||
| } else { | } else { | ||||
| $this->log("Task {$id} failed!"); | $this->log(pht('Task %d failed!', $id)); | ||||
| throw new PhutilProxyException( | throw new PhutilProxyException( | ||||
| pht('Error while executing Task ID %d.', $id), | pht('Error while executing Task ID %d.', $id), | ||||
| $ex); | $ex); | ||||
| } | } | ||||
| } else { | } else { | ||||
| $this->log(pht('Task %s complete! Moved to archive.', $id)); | $this->log(pht('Task %s complete! Moved to archive.', $id)); | ||||
| } | } | ||||
| } | } | ||||
| Show All 15 Lines | |||||