stop

View as MarkdownOpen in Claude

Stop the service. This is currently a placeholder for future cleanup logic.

This method does not yet shut down the running HTTP server or release resources. To stop the server, send a signal (e.g., SIGINT or SIGTERM) to the process.

Parameters

None.

Returns

None

Example

1from signalwire.search import SearchService
2
3service = SearchService(indexes={"docs": "./docs.swsearch"})
4
5# In a signal handler or shutdown hook:
6import signal
7
8def shutdown(sig, frame):
9 service.stop()
10
11signal.signal(signal.SIGTERM, shutdown)