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

Function stop_process

web/pgadmin/misc/bgprocess/__init__.py:137–147  ·  view source on GitHub ↗

User has stopped the process :param pid: Process ID

(pid)

Source from the content-addressed store, hash-verified

135@blueprint.route('/stop/<pid>', methods=['PUT'], endpoint='stop_process')
136@pga_login_required
137def stop_process(pid):
138 """
139 User has stopped the process
140
141 :param pid: Process ID
142 """
143 try:
144 BatchProcess.stop_process(pid)
145 return success_return()
146 except LookupError as lerr:
147 return gone(errormsg=str(lerr))
148
149
150def escape_dquotes_process_arg(arg):

Callers

nothing calls this directly

Calls 3

success_returnFunction · 0.90
goneFunction · 0.90
stop_processMethod · 0.80

Tested by

no test coverage detected