mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 06:12:18 +00:00
fix wrong cleanup
This commit is contained in:
1 parent
2d67947479
commit
2808d20a35
1 file changed
+1
-3
+1
-3
@@ -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 ==================== //
|
||||
|
||||
|
||||
Reference in new issue
Block a user