Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17634660
D16268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16268.diff
View Options
diff --git a/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php b/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php
--- a/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php
+++ b/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php
@@ -29,8 +29,11 @@
if ($commit->isUnreachable()) {
throw new PhabricatorWorkerPermanentFailureException(
pht(
- 'Commit "%s" has been deleted: it is no longer reachable from '.
- 'any ref.',
+ 'Commit "%s" (with internal ID "%s") is no longer reachable from '.
+ 'any branch, tag, or ref in this repository, so it will not be '.
+ 'imported. This usually means that the branch the commit was on '.
+ 'was deleted or overwritten.',
+ $commit->getMonogram(),
$commit_id));
}
diff --git a/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php b/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
--- a/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
+++ b/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
@@ -23,9 +23,11 @@
$ex = $task->getExecutionException();
if ($ex) {
if ($ex instanceof PhabricatorWorkerPermanentFailureException) {
- throw new PhutilProxyException(
- pht('Permanent failure while executing Task ID %d.', $id),
- $ex);
+ $this->log(
+ pht(
+ 'Task %d was cancelled: %s',
+ $id,
+ $ex->getMessage()));
} else if ($ex instanceof PhabricatorWorkerYieldException) {
$this->log(pht('Task %s yielded.', $id));
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 11, 11:21 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8346268
Default Alt Text
D16268.diff (1 KB)
Attached To
Mode
D16268: Make permanent worker failures more user-friendly
Attached
Detach File
Event Timeline
Log In to Comment