Skip to content

Commit 5622017

Browse files
authored
Update app.py
Reduced score reset timeout from 2700 minutes to 45 minutes.
1 parent 4fc1642 commit 5622017

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vali_api/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ async def resync_metagraph():
282282
async def check_stale_scoring_tasks():
283283
while True:
284284
# check and reset any stale scoring tasks
285-
reset_count = queue_manager.reset_stale_scoring_tasks(max_scoring_time_minutes=MODEL_EVAL_TIMEOUT)
285+
reset_count = queue_manager.reset_stale_scoring_tasks(max_scoring_time_minutes=MODEL_EVAL_TIMEOUT/60)
286286
print(f"Reset {reset_count} stale scoring tasks")
287287

288288
# Check every 1 minute to see if we have any newly flagged stale scoring tasks
@@ -559,4 +559,4 @@ def cached_compare_block_and_model(block: int, model_name: str) -> bool:
559559

560560

561561
if __name__ == "__main__":
562-
asyncio.run(main())
562+
asyncio.run(main())

0 commit comments

Comments
 (0)