diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-30 12:21:00 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-30 12:21:00 +0300 |
commit | 7860fc953991983795fba6440364a255cab8dc18 (patch) | |
tree | d2cf32368f71aa12a3f228f90047f7a061df47f0 /build_files/buildbot/codesign/base_code_signer.py | |
parent | 53799d3ed2439ab565bf601446c723d2b7030d38 (diff) |
Codesign: Wait for unsigned directory to appear
Solves problem with different order of codesign server startup and
mount of network shares: avoids exception happening when server is
started prior to the mounts are ready.
Diffstat (limited to 'build_files/buildbot/codesign/base_code_signer.py')
-rw-r--r-- | build_files/buildbot/codesign/base_code_signer.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build_files/buildbot/codesign/base_code_signer.py b/build_files/buildbot/codesign/base_code_signer.py index 079f7aef54c..dca771cdbaf 100644 --- a/build_files/buildbot/codesign/base_code_signer.py +++ b/build_files/buildbot/codesign/base_code_signer.py @@ -338,6 +338,11 @@ class BaseCodeSigner(metaclass=abc.ABCMeta): # TOOD(sergey): Support graceful shutdown on Ctrl-C. logger_server.info( + f'Waiting for a request directory {self.unsigned_storage_dir} to appear.') + while not self.unsigned_storage_dir.exists(): + time.sleep(1) + + logger_server.info( 'Waiting for a READY indicator of any signing request.') request_id = None while request_id is None: |