580e9c1e

Author: Michael Lynch <mtlynch@users.noreply.github.com>

Committer: GitHub <noreply@github.com>

Run garbage collection immediately on startup (#842)

Previously, garbage collection waited seven hours after each process
start. Fly's automatic idle shutdown could restart the process before
its first cleanup, leaving expired files in the database indefinitely.

Run cleanup asynchronously on startup, then continue on the existing
seven-hour schedule. This restores the startup cleanup introduced in #51
and removed by the time.Ticker refactor in #186.

Total

10s

Created Started Finished

Time to Start Worker time Duration Time to finish Idle
Config 0s 2s 2s 2s 0s
Eval 3s 7s 7s 10s 0s
Build 10s 0s 0s 10s 0s
Suite 0s 9s 10s 10s 0s

Timeline

Config Eval Build
0s10s