MCPcopy Index your code
hub / github.com/plotly/dash / stop

Method stop

dash/testing/application_runners.py:274–291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

272 self.started = True
273
274 def stop(self):
275 process = psutil.Process(self.proc.pid) # type: ignore[reportOptionalMemberAccess]
276
277 for proc in process.children(recursive=True):
278 try:
279 proc.kill()
280 except psutil.NoSuchProcess:
281 pass
282
283 try:
284 process.kill()
285 except psutil.NoSuchProcess:
286 pass
287
288 try:
289 process.wait(1)
290 except (psutil.TimeoutExpired, psutil.NoSuchProcess):
291 pass
292
293
294class ProcessRunner(BaseDashRunner):

Callers

nothing calls this directly

Calls 1

killMethod · 0.80

Tested by

no test coverage detected