Add a small timeline delay (#24673)

This commit is contained in:
Eric Liang 2022-05-10 21:04:40 -07:00 committed by GitHub
parent 2b598ca440
commit 4c6fccafe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -456,6 +456,13 @@ class GlobalState:
self._check_connected()
# Add a small delay to account for propagation delay of events to the GCS.
# This should be harmless enough but prevents calls to timeline() from
# missing recent timeline data.
import time
time.sleep(1)
profile_table = self.profile_table()
all_events = []