From 2808d20a354aec3649d8c1942fd132908c963b1e Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 28 Nov 2023 08:43:00 -0500 Subject: [PATCH] fix wrong cleanup --- .../job_types/tts/tacotron2_v2_early_fakeyou/process_job.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/service/job/inference_job/src/job/job_types/tts/tacotron2_v2_early_fakeyou/process_job.rs b/crates/service/job/inference_job/src/job/job_types/tts/tacotron2_v2_early_fakeyou/process_job.rs index afb9d807f9..30d5f9866e 100644 --- a/crates/service/job/inference_job/src/job/job_types/tts/tacotron2_v2_early_fakeyou/process_job.rs +++ b/crates/service/job/inference_job/src/job/job_types/tts/tacotron2_v2_early_fakeyou/process_job.rs @@ -160,8 +160,6 @@ async fn process_job_with_cleanup( info!("Creating tempdir for inference results."); - let temp_dir = format!("temp_tts_inference_{}", job.id.0); - let text_input_fs_path = work_temp_dir.path().join("inference_input.txt"); std::fs::write(&text_input_fs_path, &cleaned_inference_text) @@ -330,7 +328,7 @@ async fn process_job_with_cleanup( // ==================== DELETE DOWNLOADED FILE ==================== // // NB: We should be using a tempdir, but to make absolutely certain we don't overflow the disk... - safe_delete_temp_directory(&temp_dir); + safe_delete_temp_directory(&work_temp_dir.path()); // ==================== SAVE RECORDS ==================== //