Add option to echo ping payload

This commit is contained in:
allegroai 2023-05-25 19:30:13 +03:00
parent 5449b332d2
commit 900414d0de

View File

@ -3,4 +3,7 @@ from apiserver.service_repo import APICall, endpoint
@endpoint("debug.ping") @endpoint("debug.ping")
def ping(call: APICall, _, __): def ping(call: APICall, _, __):
call.result.data = {"msg": "ClearML server"} res = {"msg": "ClearML server"}
if call.data:
res.update(call.data)
call.result.data = res