MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / stop_heartbeat

Function stop_heartbeat

web/pgadmin/misc/__init__.py:282–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280@blueprint.route("/heartbeat/stop", methods=['POST'])
281@pgCSRFProtect.exempt
282def stop_heartbeat():
283 data = None
284 if hasattr(request.data, 'decode'):
285 data = request.data.decode('utf-8')
286
287 if data != '':
288 data = json.loads(data)
289
290 _, msg = stop_server_heartbeat(data)
291 return make_json_response(data=msg,
292 status=200)
293
294
295@blueprint.route("/get_heartbeat/<int:sid>", methods=['GET'])

Callers

nothing calls this directly

Calls 3

stop_server_heartbeatFunction · 0.90
make_json_responseFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected