Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kentbull/hio-shutdown
https://github.com/kentbull/hio-shutdown
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kentbull/hio-shutdown
- Owner: kentbull
- Created: 2024-05-17T23:33:32.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-05-17T23:35:15.000Z (7 months ago)
- Last Synced: 2024-05-18T00:30:11.509Z (7 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HIO Shutdown
Run with `python main.py`
Then send a curl request to `/health?shutdown=true` to trigger a shutdown.
Example:
```bash
curl "http://localhost:8080/health?shutdown=true"
```Sample log output:
```text
2024-05-17 17:34:14,370 - hio_shutdown - INFO - Starting server on port 8080
2024-05-17 17:34:19,348 - hio_shutdown - INFO - Shutdown requested
2024-05-17 17:34:19,370 - hio_shutdown - INFO - Server received shutdown signal
2024-05-17 17:34:19,370 - hio_shutdown - INFO - Server exiting
2024-05-17 17:34:19,405 - hio_shutdown - INFO - Server shutdown
```