mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-06-06 21:31:55 +00:00
update
This commit is contained in:
parent
5804c0ce72
commit
f43af24ecd
1
agent.py
1
agent.py
@ -211,6 +211,7 @@ class MyHandler(BaseHTTPRequestHandler):
|
||||
exit_code, output = container.exec_run(['sh', '-c', script])
|
||||
msg = {"code": 0, "id": output.decode('utf-8').rstrip('\n')}
|
||||
|
||||
if docker_wait == "1":
|
||||
lock.acquire()
|
||||
pending_tasks[token] = {'gpus': str(docker_gpus).split(','), 'gpu_mem': int(docker_gpu_mem)}
|
||||
id2token[msg['id']] = token
|
||||
|
Loading…
Reference in New Issue
Block a user