diff --git a/src/applications/daemon/controller/PhabricatorDaemonBulkJobViewController.php b/src/applications/daemon/controller/PhabricatorDaemonBulkJobViewController.php index 6fc3af724e..f32892cf4c 100644 --- a/src/applications/daemon/controller/PhabricatorDaemonBulkJobViewController.php +++ b/src/applications/daemon/controller/PhabricatorDaemonBulkJobViewController.php @@ -71,9 +71,15 @@ final class PhabricatorDaemonBulkJobViewController ->setUser($viewer) ->setObject($job); + if ($job->isConfirming()) { + $continue_uri = $job->getMonitorURI(); + } else { + $continue_uri = $job->getDoneURI(); + } + $actions->addAction( id(new PhabricatorActionView()) - ->setHref($job->getDoneURI()) + ->setHref($continue_uri) ->setIcon('fa-arrow-circle-o-right') ->setName(pht('Continue'))); diff --git a/src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJob.php b/src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJob.php index 7eed0240eb..20d981c576 100644 --- a/src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJob.php +++ b/src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJob.php @@ -130,6 +130,10 @@ final class PhabricatorWorkerBulkJob return idx($map, $this->getStatus(), $this->getStatus()); } + public function isConfirming() { + return ($this->getStatus() == self::STATUS_CONFIRM); + } + /* -( Job Implementation )------------------------------------------------- */