actually, we don't need that table anymore

This commit is contained in:
Brandon Thomas committed 2024-02-22 23:12:08 -05:00
1 parent d543ac3a33
commit 203ae33adb
1 file changed
+16 -16
@@ -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 {