mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10: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:
parent
66950a84b2
commit
4277123060
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue