mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(media-proxy): serve originals and speed up slow transforms (#3393)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user