1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Increase Drydock worker time to 24 hours

Summary:
Ref T2015.  This increases the Drydock worker lease time to 24 hours.  We noticed that some leases took longer than 2 hours when leasing from AWS (the actual resource was successfully leased at around 2 hours, 19 minutes).

24 hours should be plenty enough time to actually lease anything from EC2 (or any other leases during builds).

Test Plan: Have not yet tested this.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D10544
This commit is contained in:
James Rhodes 2014-09-25 09:46:47 +10:00
parent 66950a84b2
commit 4277123060

View file

@ -4,6 +4,10 @@ final class DrydockAllocatorWorker extends PhabricatorWorker {
private $lease; private $lease;
public function getRequiredLeaseTime() {
return 3600 * 24;
}
public function getMaximumRetryCount() { public function getMaximumRetryCount() {
// TODO: Allow Drydock allocations to retry. For now, every failure is // TODO: Allow Drydock allocations to retry. For now, every failure is
// permanent and most of them are because I am bad at programming, so fail // permanent and most of them are because I am bad at programming, so fail