pminervini commited on
Commit
4876a51
1 Parent(s): a5a4f8d
Files changed (1) hide show
  1. backend-cli.py +12 -0
backend-cli.py CHANGED
@@ -278,6 +278,18 @@ if __name__ == "__main__":
278
  res = process_pending_requests()
279
  time.sleep(60)
280
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  if res is False:
282
  if random.randint(0, 5) == 0:
283
  res = maybe_refresh_results(100, hard_task_lst=hard_task_lst)
 
278
  res = process_pending_requests()
279
  time.sleep(60)
280
 
281
+ if res is False:
282
+ if random.randint(0, 5) == 0:
283
+ res = maybe_refresh_results(1000, hard_task_lst=hard_task_lst)
284
+ else:
285
+ res = process_finished_requests(1000, hard_task_lst=hard_task_lst)
286
+
287
+ if res is False:
288
+ if random.randint(0, 5) == 0:
289
+ res = maybe_refresh_results(200, hard_task_lst=hard_task_lst)
290
+ else:
291
+ res = process_finished_requests(200, hard_task_lst=hard_task_lst)
292
+
293
  if res is False:
294
  if random.randint(0, 5) == 0:
295
  res = maybe_refresh_results(100, hard_task_lst=hard_task_lst)