You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# When we get above the low water mark, use our wait time
395
-
# function to start to slow down.
395
+
# When we get above the low water mark, use our wait time function to start to slow down.
396
396
397
397
ifwatermark>self.low_watermark: # This all needs to be done based on the worst XID if all DBs
398
398
wait_time=self.get_wait_time(watermark)
399
+
400
+
# Short-circuit if the the system is in trouble.
401
+
402
+
ifwait_time<0:
403
+
return-1.0
404
+
405
+
# Calculate largest wait time.
406
+
399
407
current_log_time=time.time()
400
-
# log a message when the wait_time changes OR if the log interval has passed
401
-
if (wait_time!=self.old_wait_time) or ((current_log_time-self.last_log_time) >self.log_interval_in_seconds):
402
-
logging.info("senzing-{0}0005I Governor waiting {1} seconds for {2} database age(XID) to go from current value of {3} ({4}) to low watermark of {5}.".format(
408
+
409
+
# Log a message when the wait_time changes OR if the log interval has passed
410
+
411
+
if (wait_time>self.old_wait_time) or ((current_log_time-self.last_log_time) >self.log_interval_in_seconds):
412
+
logging.info("senzing-{0}0005I Governor suggests waiting {1} seconds for {2} database age(XID) to go from current value of {3} ({4}) to low watermark of {5}.".format(
0 commit comments