Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 20, 2023
1 parent e79e050 commit f18bd2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion performance_measurement/measure_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def run(self,
continue

if condition_2 is None:
if (ds_event["object"].status.number_ready == input["spec"]["replicas"]
if (ds_event["object"].status.number_ready == ds_event["object"].status.desired_number_scheduled
and current_spec_hash == last_spec_hash):
condition_2 = timestamp
break
Expand Down Expand Up @@ -872,6 +872,7 @@ def watch_system_events(event_stream, queue: Queue):
'''
for object in event_stream:
try:
logging.info("Event: %s %s" % (object['type'], object['object'].metadata.name))
ts = time.time()
queue.put((object, ts))
except (ValueError, AssertionError):
Expand Down

0 comments on commit f18bd2a

Please sign in to comment.