mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +00:00
Add option to echo ping payload
This commit is contained in:
parent
5449b332d2
commit
900414d0de
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user