From c406972175a146f3cb28daed7ba0c5ab345fce65 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 18 Jun 2021 02:50:23 -0400 Subject: [PATCH] store bucket uuid --- debug/mysql/last_w2l_inference_results.sh | 4 ++-- src/job_queries/tts_inference_job_queries.rs | 4 +++- src/tts_inference_job.rs | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/debug/mysql/last_w2l_inference_results.sh b/debug/mysql/last_w2l_inference_results.sh index 75db2a2c62..28478a985b 100755 --- a/debug/mysql/last_w2l_inference_results.sh +++ b/debug/mysql/last_w2l_inference_results.sh @@ -37,8 +37,8 @@ EOF echo $query -mysql -u root \ - -proot \ +mysql -u storyteller \ + -ppassword \ -h localhost \ -D storyteller \ -e "${query}" diff --git a/src/job_queries/tts_inference_job_queries.rs b/src/job_queries/tts_inference_job_queries.rs index 9beed40a5e..393b92744a 100644 --- a/src/job_queries/tts_inference_job_queries.rs +++ b/src/job_queries/tts_inference_job_queries.rs @@ -227,6 +227,7 @@ pub async fn insert_tts_result>( text_hash: &str, bucket_audio_results_path: P, bucket_spectrogram_results_path: P, + bucket_uuid: &str, file_size_bytes: u64, duration_millis: u64 ) -> AnyhowResult<(u64, String)> @@ -325,7 +326,7 @@ SET public_bucket_hash = 'TODO', public_bucket_wav_audio_path = ?, public_bucket_spectrogram_path = ?, - inference_public_bucket_uuid = 'TODO', + inference_public_bucket_uuid = ?, file_size_bytes = ?, duration_millis = ? @@ -343,6 +344,7 @@ SET bucket_audio_result_path, bucket_spectrogram_result_path, + bucket_uuid, file_size_bytes, duration_millis diff --git a/src/tts_inference_job.rs b/src/tts_inference_job.rs index 00d5a9b8f5..040b44f1dd 100644 --- a/src/tts_inference_job.rs +++ b/src/tts_inference_job.rs @@ -462,6 +462,7 @@ async fn process_job(inferencer: &Inferencer, job: &TtsInferenceJobRecord) -> An &text_hash, &audio_result_object_path, &spectrogram_result_object_path, + &job.uuid_idempotency_token, file_metadata.file_size_bytes, file_metadata.duration_millis.unwrap_or(0)) .await?;