We've noticed disk problems on our system mounts, and we're seeing a lot of problems with generating PDF derivatives, as in #6366.
This is a test to see if we can improve things without completely rehauling how we do PDF derivatives.
Acceptance Criteria
[ ] If something breaks in saving a file while generating PDF derivatives it doesn't leave a bunch of empty files attached to the resource. It instead tries again.
First Step
Find a way to reproduce this scenario? Or fake it in a test.
Implementation Tips
Maybe for each page see if it's zero bytes, and if so throw our own error so the job will retry.
6446 seemed to help a lot. One thing is it looks like sometimes VIPS doesn't make the file where we told it to - or maybe at all. See https://app.honeybadger.io/projects/53391/faults/108852782. Retrying on ENOENT might be a good idea.
We've noticed disk problems on our system mounts, and we're seeing a lot of problems with generating PDF derivatives, as in #6366.
This is a test to see if we can improve things without completely rehauling how we do PDF derivatives.
Acceptance Criteria
First Step
Find a way to reproduce this scenario? Or fake it in a test.
Implementation Tips
Maybe for each page see if it's zero bytes, and if so throw our own error so the job will retry.
Sudden Priority Justification
PDFs are breakin' all over the place.