1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

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
This commit is contained in:
epriestley 2022-05-09 10:43:43 -07:00
parent 1835ca1918
commit a640a4a493

View file

@ -314,6 +314,7 @@ final class DrydockLeaseUpdateWorker extends DrydockWorker {
->withStatuses( ->withStatuses(
array( array(
DrydockResourceStatus::STATUS_ACTIVE, DrydockResourceStatus::STATUS_ACTIVE,
DrydockResourceStatus::STATUS_RELEASED,
)) ))
->setLimit(1) ->setLimit(1)
->execute(); ->execute();