Remove github delay
The caching issues are solved now, so try with no delay again. Change-Id: I109b88bd3bb2b9ff14f8909e6d03de247c797ca8
This commit is contained in:
parent
8e78ba6124
commit
3dec9c962a
|
@ -138,7 +138,6 @@ class GithubEventConnector(threading.Thread):
|
||||||
"""Move events from GitHub into the scheduler"""
|
"""Move events from GitHub into the scheduler"""
|
||||||
|
|
||||||
log = logging.getLogger("zuul.GithubEventConnector")
|
log = logging.getLogger("zuul.GithubEventConnector")
|
||||||
delay = 10.0
|
|
||||||
|
|
||||||
def __init__(self, connection):
|
def __init__(self, connection):
|
||||||
super(GithubEventConnector, self).__init__()
|
super(GithubEventConnector, self).__init__()
|
||||||
|
@ -154,14 +153,6 @@ class GithubEventConnector(threading.Thread):
|
||||||
ts, json_body, event_type = self.connection.getEvent()
|
ts, json_body, event_type = self.connection.getEvent()
|
||||||
if self._stopped:
|
if self._stopped:
|
||||||
return
|
return
|
||||||
# Github can produce inconsistent data immediately after an
|
|
||||||
# event, So ensure that we do not deliver the event to Zuul
|
|
||||||
# until at least a certain amount of time has passed. Note
|
|
||||||
# that if we receive several events in succession, we will
|
|
||||||
# only need to delay for the first event. In essence, Zuul
|
|
||||||
# should always be a constant number of seconds behind Github.
|
|
||||||
now = time.time()
|
|
||||||
time.sleep(max((ts + self.delay) - now, 0.0))
|
|
||||||
|
|
||||||
# If there's any installation mapping information in the body then
|
# If there's any installation mapping information in the body then
|
||||||
# update the project mapping before any requests are made.
|
# update the project mapping before any requests are made.
|
||||||
|
|
Loading…
Reference in New Issue