parametrize dumbRandomScheduler

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-02-24 10:24:19 +01:00
parent a03371cf4e
commit 0a418b35b2
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E

View File

@ -371,9 +371,8 @@ class Validator:
else:
self.segmentShuffleGen = shuffled(self.segmentsToSend, self.shuffleLines)
def runDumbRandomScheduler(self):
def runDumbRandomScheduler(self, tries = 100):
# dumb random scheduler picking segments at random and trying to send it
tries = 100
t = tries
while t:
if self.rowIDs: