From a640a4a4930fbf5de15bcc90568880e6648c9093 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 9 May 2022 10:43:43 -0700 Subject: [PATCH] In Drydock, yield for reclaiming resources in the "released" state Summary: Ref T13677. This was an accidental change in D21807: when reclaiming a resource, wait for it to be completely destroyed before allowing a lease to reclaim another resource. Test Plan: Reverts accidental behavior change in D21807. Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13677 Differential Revision: https://secure.phabricator.com/D21809 --- src/applications/drydock/worker/DrydockLeaseUpdateWorker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/drydock/worker/DrydockLeaseUpdateWorker.php b/src/applications/drydock/worker/DrydockLeaseUpdateWorker.php index 676401937e..0402276696 100644 --- a/src/applications/drydock/worker/DrydockLeaseUpdateWorker.php +++ b/src/applications/drydock/worker/DrydockLeaseUpdateWorker.php @@ -314,6 +314,7 @@ final class DrydockLeaseUpdateWorker extends DrydockWorker { ->withStatuses( array( DrydockResourceStatus::STATUS_ACTIVE, + DrydockResourceStatus::STATUS_RELEASED, )) ->setLimit(1) ->execute();