Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15421493
D10871.id26108.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
535 B
Referenced Files
None
Subscribers
None
D10871.id26108.diff
View Options
diff --git a/src/applications/drydock/worker/DrydockAllocatorWorker.php b/src/applications/drydock/worker/DrydockAllocatorWorker.php
--- a/src/applications/drydock/worker/DrydockAllocatorWorker.php
+++ b/src/applications/drydock/worker/DrydockAllocatorWorker.php
@@ -356,7 +356,8 @@
$blueprint->allocateResource($resource, $lease);
} catch (Exception $ex) {
- $resource->delete();
+ $resource->setStatus(DrydockResourceStatus::STATUS_BROKEN);
+ $resource->save();
throw $ex;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 12:17 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7710229
Default Alt Text
D10871.id26108.diff (535 B)
Attached To
Mode
D10871: Set the status of DrydockResource to BROKEN instead of performing a hard-delete
Attached
Detach File
Event Timeline
Log In to Comment