mirror of
https://github.com/clearml/clearml-server
synced 2025-06-26 23:15:47 +00:00
Add option to echo ping payload
This commit is contained in:
@@ -3,4 +3,7 @@ from apiserver.service_repo import APICall, endpoint
|
||||
|
||||
@endpoint("debug.ping")
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user