99f17b8f

By: Michael Lynch <git@mtlynch.io>

Make media deletion recoverable

Soft-delete media records before removing persisted variants, then purge the
record and its activity only after all files are gone. Recover unfinished hard
deletes during startup.

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 2s 11s 11s 14s 2s
Eval 11s 23s 23s 34s 0s
Build 26s 0s 2s 29s 0s
Suite 2s 34s 31s 34s 2s

Timeline

0s10s20s30s