feat(worker): enforce image processing timeout with child process

This commit is contained in:
kk10
2026-11-16 15:52:49 +03:00
parent be10119910
commit 97b43a9c98
5 changed files with 135 additions and 24 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (w *Worker) finishFailure(ctx context.Context, job model.AttachmentJob, cau
}
code := "processing_failed"
permanent := errors.Is(cause, errInvalidSource) || errors.Is(cause, s3store.ErrObjectNotFound)
permanent := errors.Is(cause, ErrInvalidSource) || errors.Is(cause, s3store.ErrObjectNotFound)
if permanent {
code = "invalid_source"
} else if errors.Is(cause, context.DeadlineExceeded) {