diff options
author | George Burgess IV <gbiv@google.com> | 2020-05-02 10:52:07 -0700 |
---|---|---|
committer | George Burgess <gbiv@chromium.org> | 2020-05-04 19:43:42 +0000 |
commit | b35bdfeea0d235f88592763393dc3a769568dd5c (patch) | |
tree | 7a7ad7d4a4ff0d09257c33ee0569db62f31dc4dd /lock_machine.py | |
parent | bdb74f76914921f50ac50da29499c5bb4f0c7741 (diff) | |
download | toolchain-utils-b35bdfeea0d235f88592763393dc3a769568dd5c.tar.gz |
lock_machine: slightly adjust lease duration
When trying to lock a skylab machine, I got the following error:
```
Lease duration (1440 minutes) cannot exceed 1 day [1440 minutes]
```
Though our lease duration doesn't _exceed_ one day, it's easy enough to
drop it by one minute to make the error go away.
BUG=None
TEST=Ran crosperf
Change-Id: I75c11de1a70e46f75a50c5022f6b4860c0338c1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2177065
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'lock_machine.py')
-rwxr-xr-x | lock_machine.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lock_machine.py b/lock_machine.py index 10e6049a..776fe545 100755 --- a/lock_machine.py +++ b/lock_machine.py @@ -57,7 +57,7 @@ class LockManager(object): # TODO(zhizhouy): lease time may needs to be dynamically adjusted. For now we # set it long enough to cover the period to finish nightly rotation tests. - LEASE_MINS = 1440 + LEASE_MINS = 1439 SKYLAB_CREDENTIAL = ('/usr/local/google/home/mobiletc-prebuild' '/sheriff_utils/credentials/skylab' |