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:
@@ -4,6 +4,10 @@ final class DrydockAllocatorWorker extends PhabricatorWorker {
|
||||
|
||||
private $lease;
|
||||
|
||||
public function getRequiredLeaseTime() {
|
||||
return 3600 * 24;
|
||||
}
|
||||
|
||||
public function getMaximumRetryCount() {
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user