fix(media-proxy): serve originals and speed up slow transforms (#3393)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-11 14:41:01 +02:00
1 parent 44bc29b101
commit aa3b058ce6
29 files changed
+632 -83

No files matched your search

@@ -52,7 +52,10 @@ where
.cache()
.get_or_run(cache_key, format, deadline, work)
.await;
if matches!(result, Err(CoalescerError::WorkFailed)) {
if matches!(
result,
Err(CoalescerError::WorkFailed | CoalescerError::TooLargeToProcess)
) {
runtime.metrics().record_transform_failure();
}
result
@@ -63,7 +66,7 @@ pub(in crate::server) fn coalescer_failure_response(
timeout_code: &'static str,
) -> Option<Response> {
let reason = match error {
CoalescerError::WorkFailed => return None,
CoalescerError::WorkFailed | CoalescerError::TooLargeToProcess => return None,
CoalescerError::RequestTimeout => {
return Some(text_with_reason(
StatusCode::GATEWAY_TIMEOUT,