1) Improve Build-in agent "Tracy Wang" 2) fix bug

This commit is contained in:
Liu Zhicong
2023-09-18 23:25:44 -07:00
parent 0d8ee2a7af
commit 874aa98e21
8 changed files with 81 additions and 26 deletions
+1 -3
View File
@@ -30,8 +30,6 @@ class ComputeKernel:
self.is_start = False
self.compute_nodes = {}
self.start()
def run(self, task: ComputeTask) -> None:
# check there is compute node can support this task
if self.is_task_support(task) is False:
@@ -41,7 +39,7 @@ class ComputeKernel:
# add task to working_queue
self.task_queue.put_nowait(task)
def start(self):
async def start(self):
if self.is_start is True:
logger.warn("compute_kernel is already start")
return