store bucket uuid

This commit is contained in:
Brandon Thomas committed 2021-06-18 02:50:23 -04:00
1 parent 4ded82b3c7
commit c406972175
3 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -37,8 +37,8 @@ EOF
echo $query
mysql -u root \
-proot \
mysql -u storyteller \
-ppassword \
-h localhost \
-D storyteller \
-e "${query}"
+3 -1
View File
@@ -227,6 +227,7 @@ pub async fn insert_tts_result<P: AsRef<Path>>(
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
+1
View File
@@ -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?;