MCPcopy
hub / github.com/TransformerOptimus/SuperAGI / cleanup

Function cleanup

cli2.py:39–45  ·  view source on GitHub ↗
(api_process, ui_process, celery_process)

Source from the content-addressed store, hash-verified

37
38
39def cleanup(api_process, ui_process, celery_process):
40 logger.info("Shutting down processes...")
41 api_process.terminate()
42 ui_process.terminate()
43 celery_process.terminate()
44 logger.info("Processes terminated. Exiting.")
45 sys.exit(1)
46
47
48if __name__ == "__main__":

Callers 1

cli2.pyFile · 0.70

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected