A warning signal is a bonus, not the plan
Borg can send a task a SIGTERM signal, a request to stop, before it kills the task with SIGKILL. The task gets time to clean up, save state, finish the requests it's serving and decline new ones. But in practice, Borg's paper says, the notice arrives about 80% of the time.
Kubernetes works the same way: a preempted pod gets its graceful termination period. That's a trade-off, because the grace period delays the job that's waiting. For faster preemption, Kubernetes suggests setting the grace period of lower-priority pods to zero or a small number.
Whether a 30-second grace period covers a checkpoint write depends on its size and the storage behind it. And Borg's notice came only about 80% of the time. So jobs checkpoint on a schedule, and the grace period is a bonus, not the plan.
In the editor, write saves_in_grace(size_gb, gb_per_s, grace_s) and expected_lost(hours, notice_rate, saves). The last lines assume a 30-second grace period, storage that writes 10 GB a second, and Borg's notice rate of 80%.