Skip to content

utils: Avoid read race between touch_healthz_file and check_healthz

BryanDavis requested to merge work/bd808/atomic-last-timestamp into main

Atomically replace settings.HEALTH_CHECK_FILE using os.rename. This should eliminate ValueError failures from check_healthz caused by reading while the file has been truncated for write.

Merge request reports