Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14036611
D11385.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
960 B
Referenced Files
None
Subscribers
None
D11385.diff
View Options
diff --git a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
--- a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
+++ b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
@@ -32,11 +32,16 @@
$ref->pid = idx($dict, 'pid');
$ref->start = idx($dict, 'start');
- $ref->daemonLog = id(new PhabricatorDaemonLog())->loadOneWhere(
- 'daemon = %s AND pid = %d AND dateCreated = %d',
- $ref->name,
- $ref->pid,
- $ref->start);
+ try {
+ $ref->daemonLog = id(new PhabricatorDaemonLog())->loadOneWhere(
+ 'daemon = %s AND pid = %d AND dateCreated = %d',
+ $ref->name,
+ $ref->pid,
+ $ref->start);
+ } catch (AphrontQueryException $ex) {
+ // Ignore the exception. We want to be able to terminate the daemons,
+ // even if MySQL is down.
+ }
return $ref;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 11, 11:07 AM (2 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6750759
Default Alt Text
D11385.diff (960 B)
Attached To
Mode
D11385: Allow daemons to be terminated in the absence of MySQL
Attached
Detach File
Event Timeline
Log In to Comment