Changeset 248858 in webkit


Ignore:
Timestamp:
Aug 19, 2019 10:51:47 AM (5 years ago)
Author:
Jonathan Bedard
Message:

results-webkit.org: Add timeout to Redis locks
https://bugs.webkit.org/show_bug.cgi?id=200890

Reviewed by Aakash Jain.

  • resultsdbpy/resultsdbpy/model/upload_context.py:

(UploadContext._find_job_with_attempts): Add timeout to Redis lock.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r248856 r248858  
     12019-08-19  Jonathan Bedard  <jbedard@apple.com>
     2
     3        results-webkit.org: Add timeout to Redis locks
     4        https://bugs.webkit.org/show_bug.cgi?id=200890
     5
     6        Reviewed by Aakash Jain.
     7
     8        * resultsdbpy/resultsdbpy/model/upload_context.py:
     9        (UploadContext._find_job_with_attempts): Add timeout to Redis lock.
     10
    1112019-08-19  Sihui Liu  <sihui_liu@apple.com>
    212
  • trunk/Tools/resultsdbpy/resultsdbpy/model/upload_context.py

    r248678 r248858  
    128128        will_attempt = 0
    129129
    130         with self.redis.lock(name=f'lock_{self.QUEUE_NAME}'):
     130        with self.redis.lock(name=f'lock_{self.QUEUE_NAME}', timeout=60):
    131131            for key in self.redis.scan_iter(match=f'{self.QUEUE_NAME}*', count=self.MAX_TASKS_IN_SCAN):
    132132                are_jobs_left = True
Note: See TracChangeset for help on using the changeset viewer.