From 203ae33adb6c5b680d2f280c9f40e9dd89368c19 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 22 Feb 2024 23:12:08 -0500 Subject: [PATCH] actually, we don't need that table anymore --- .../sd/process_job_inference.rs | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/crates/service/job/inference_job/src/job/job_types/image_generation/sd/process_job_inference.rs b/crates/service/job/inference_job/src/job/job_types/image_generation/sd/process_job_inference.rs index d4895812a5..4684030dee 100644 --- a/crates/service/job/inference_job/src/job/job_types/image_generation/sd/process_job_inference.rs +++ b/crates/service/job/inference_job/src/job/job_types/image_generation/sd/process_job_inference.rs @@ -309,22 +309,22 @@ pub async fn process_job_inference( .await .map_err(|e| ProcessSingleJobError::from_anyhow_error(anyhow!(e)))?; - let batch_token_result = insert_batch_generation_records(InsertBatchArgs { - entries, - maybe_existing_batch_token: Some(&batch_token), - transaction: &mut transaction, - }).await; - - let _batch_token = match batch_token_result { - Ok(v) => { v.to_string() } - Err(_err) => { - return Err( - ProcessSingleJobError::from_anyhow_error( - anyhow!("No batch token? something has failed.") - ) - ); - } - }; + //let batch_token_result = insert_batch_generation_records(InsertBatchArgs { + // entries, + // maybe_existing_batch_token: Some(&batch_token), + // transaction: &mut transaction, + //}).await; + // + //let _batch_token = match batch_token_result { + // Ok(v) => { v.to_string() } + // Err(_err) => { + // return Err( + // ProcessSingleJobError::from_anyhow_error( + // anyhow!("No batch token? something has failed.") + // ) + // ); + // } + //}; // NB: Don't fail the job if the query fails. let prompt_result = insert_prompt(InsertPromptArgs {