Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/PhabricatorWorker.php
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | while ($waiting) { | ||||
$ex = $task->getExecutionException(); | $ex = $task->getExecutionException(); | ||||
if ($ex) { | if ($ex) { | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
} | } | ||||
$tasks = id(new PhabricatorWorkerArchiveTaskQuery()) | $tasks = id(new PhabricatorWorkerArchiveTaskQuery()) | ||||
->withIDs($task_ids); | ->withIDs($task_ids) | ||||
->execute(); | |||||
foreach ($tasks as $task) { | foreach ($tasks as $task) { | ||||
if ($task->getResult() != PhabricatorWorkerArchiveTask::RESULT_SUCCESS) { | if ($task->getResult() != PhabricatorWorkerArchiveTask::RESULT_SUCCESS) { | ||||
throw new Exception(pht('Task %d failed!', $task->getID())); | throw new Exception(pht('Task %d failed!', $task->getID())); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |