Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18813474
D10409.id25049.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
783 B
Referenced Files
None
Subscribers
None
D10409.id25049.diff
View Options
diff --git a/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
--- a/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
+++ b/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
@@ -171,6 +171,8 @@
}
if ($allocation_exception) {
+ $lease->setStatus(DrydockLeaseStatus::STATUS_BROKEN);
+ $lease->save();
$this->logException($allocation_exception);
}
@@ -236,6 +238,8 @@
try {
$this->executeAcquireLease($resource, $ephemeral_lease);
} catch (Exception $ex) {
+ $lease->setStatus(DrydockLeaseStatus::STATUS_BROKEN);
+ $lease->save();
$this->logException($ex);
throw $ex;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 21, 4:45 PM (1 h, 24 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8875366
Default Alt Text
D10409.id25049.diff (783 B)
Attached To
Mode
D10409: [drydock/core] Mark leases as broken when failing to acquiring lease
Attached
Detach File
Event Timeline
Log In to Comment