File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class CapacityService:
10
10
def __init__ (self , metagraph , dendrite ):
11
11
self .metagraph = metagraph
12
12
self .dendrite : bt .dendrite = dendrite
13
- self .timeout = 4
13
+ self .timeout = 30
14
14
self .uid_to_capacity = {}
15
15
self .remain_uid_to_capacity = {}
16
16
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ async def get_available_uids(self):
348
348
async def check_uid (self , axon , uid ):
349
349
"""Asynchronously check if a UID is available."""
350
350
try :
351
- response = await self .dendrite (axon , IsAlive (), timeout = 4 )
351
+ response = await self .dendrite (axon , IsAlive (), timeout = 30 )
352
352
if response .completion == 'True' :
353
353
bt .logging .trace (f"UID { uid } is active" )
354
354
return axon # Return the axon info instead of the UID
@@ -599,6 +599,9 @@ async def process_queries_from_database(self):
599
599
if not self .is_epoch_end ():
600
600
bt .logging .debug ("no end of epoch. so continue..." )
601
601
continue
602
+ if not self .synthetic_task_done :
603
+ bt .logging .debug ("wait for synthetic tasks to complete." )
604
+ continue
602
605
603
606
bt .logging .info (f"start scoring process..." )
604
607
You can’t perform that action at this time.
0 commit comments