Grokking Concurrency in Python
0% completed
Graceful Shutdown
Harvest ran as a service for 1.2 seconds, and then a script that acted as the deployment system sent it SIGTERM, the signal that asks a process to stop. The shell reported exit status 143. Harvest's log said that four pages were indexed, yet its output file, index.jsonl, contained zero lines.
No exception was printed. A concurrent Python service needs a planned response to that signal, which decides what to stop, what to finish, what to save, and how long to wait.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%