1
0
mirror of https://github.com/newnius/YAO-agent.git synced 2025-12-13 05:26:43 +00:00

all in one

This commit is contained in:
2019-12-26 17:01:29 +08:00
parent ff0d2d6352
commit e3eb47b93b

View File

@@ -151,6 +151,7 @@ class MyHandler(BaseHTTPRequestHandler):
lock.acquire()
pending_tasks[msg['id']] = {'gpus': str(docker_gpus).split(',')}
lock.release()
print(msg)
if exit_code != 0:
msg["code"] = 1
except Exception as e: