481b623f

By: Michael Lynch <git@mtlynch.io>

Collapse uploads.Processor into single-call ProcessImage/ProcessVideo

Replace the two-phase Processable-then-Process API with a single
ProcessImage(path, mediaType, files) / ProcessVideo(path, files) call each,
moving validation inside the process call instead of a separate
constructor step. This shrinks handlers' MediaProcessor interface from
four methods to two and simplifies publishImage/publishVideo into a
single call-then-branch-on-error shape.

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 2s 22s 22s 25s 2s
Eval 17s 1m43s 1m43s 2m00s 0s
Build 1m49s 9m46s 2m48s 4m38s 0s
Suite 2s 11m52s 4m35s 4m38s 2s

Timeline

0s20s40s1m1m20s1m40s2m2m20s2m40s3m3m20s3m40s4m4m20s