pminervini commited on
Commit
8812eb2
1 Parent(s): 120749e
Files changed (1) hide show
  1. backend-cli.py +2 -2
backend-cli.py CHANGED
@@ -281,7 +281,7 @@ if __name__ == "__main__":
281
  time.sleep(60)
282
 
283
  if res is False:
284
- if random.randint(0, 1) == 0:
285
  res = maybe_refresh_results(100, hard_task_lst=hard_task_lst)
286
  else:
287
  res = process_finished_requests(100, hard_task_lst=hard_task_lst)
@@ -289,7 +289,7 @@ if __name__ == "__main__":
289
  time.sleep(60)
290
 
291
  if res is False:
292
- if random.randint(0, 1) == 0:
293
  res = maybe_refresh_results(0, hard_task_lst=hard_task_lst)
294
  else:
295
  res = process_finished_requests(0, hard_task_lst=hard_task_lst)
 
281
  time.sleep(60)
282
 
283
  if res is False:
284
+ if random.randint(0, 5) == 0:
285
  res = maybe_refresh_results(100, hard_task_lst=hard_task_lst)
286
  else:
287
  res = process_finished_requests(100, hard_task_lst=hard_task_lst)
 
289
  time.sleep(60)
290
 
291
  if res is False:
292
+ if random.randint(0, 5) == 0:
293
  res = maybe_refresh_results(0, hard_task_lst=hard_task_lst)
294
  else:
295
  res = process_finished_requests(0, hard_task_lst=hard_task_lst)