Self-hosted GitHub Actions runners consume excessive CPU due to a busy-waiting sleep implementation that continuously checks the system clock instead of using efficient OS-level sleep functions. This can be fixed by replacing the runner's safe_sleep.sh script with a smarter version that prioritizes native sleep commands, falls
Table of contents
# The problem: Busy-waiting# The solution: A smarter sleep script# A word of caution# Additional resourcesSort: