fix: memory optimization for flow with big args (#4019)

This commit is contained in:
Ruben Fiszel
2024-07-04 10:08:42 +02:00
committed by GitHub
parent 7e1a448fd7
commit 2812792326
30 changed files with 491 additions and 395 deletions

View File

@@ -1007,9 +1007,6 @@ pub async fn handle_python_reqs(
Ok(req_paths)
}
#[cfg(feature = "enterprise")]
use std::sync::Arc;
#[cfg(feature = "enterprise")]
use crate::JobCompletedSender;
#[cfg(feature = "enterprise")]
@@ -1032,7 +1029,7 @@ pub async fn start_worker(
script_path: &str,
token: &str,
job_completed_tx: JobCompletedSender,
jobs_rx: Receiver<Arc<QueuedJob>>,
jobs_rx: Receiver<std::sync::Arc<QueuedJob>>,
killpill_rx: tokio::sync::broadcast::Receiver<()>,
) -> error::Result<()> {
let mut mem_peak: i32 = 0;