mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
Add extension
This commit is contained in:
1 parent
9701e29b58
commit
4306a4763d
2 files changed
+5
-2
No files matched your search
+3
@@ -24,6 +24,7 @@ pub struct InsertArgs<'a> {
|
||||
//pub duration_millis: u64,
|
||||
|
||||
pub public_bucket_directory_hash: &'a str,
|
||||
pub maybe_public_bucket_extension: Option<&'a str>,
|
||||
|
||||
pub is_on_prem: bool,
|
||||
pub worker_hostname: &'a str,
|
||||
@@ -85,6 +86,7 @@ SET
|
||||
checksum_sha2 = ?,
|
||||
|
||||
public_bucket_directory_hash = ?,
|
||||
maybe_public_bucket_extension = ?,
|
||||
|
||||
maybe_creator_user_token = ?,
|
||||
creator_ip_address = ?,
|
||||
@@ -111,6 +113,7 @@ SET
|
||||
args.sha256_checksum,
|
||||
|
||||
args.public_bucket_directory_hash,
|
||||
args.maybe_public_bucket_extension,
|
||||
|
||||
args.job.maybe_creator_user_token,
|
||||
args.job.creator_ip_address,
|
||||
|
||||
+2
-2
@@ -227,7 +227,7 @@ pub async fn process_job(args: SadTalkerProcessJobArgs<'_>) -> Result<JobSuccess
|
||||
|
||||
check_file_exists(&output_video_fs_path).map_err(|e| ProcessSingleJobError::Other(e))?;
|
||||
|
||||
// ==================== WATERMARK ==================== //
|
||||
// ==================== OPTIONAL WATERMARK ==================== //
|
||||
|
||||
let mut finished_file = output_video_fs_path.clone();
|
||||
|
||||
@@ -259,7 +259,6 @@ pub async fn process_job(args: SadTalkerProcessJobArgs<'_>) -> Result<JobSuccess
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ==================== CHECK ALL FILES EXIST AND GET METADATA ==================== //
|
||||
|
||||
info!("Checking that output watermark file exists: {:?} ...", finished_file);
|
||||
@@ -324,6 +323,7 @@ pub async fn process_job(args: SadTalkerProcessJobArgs<'_>) -> Result<JobSuccess
|
||||
file_size_bytes,
|
||||
sha256_checksum: &file_checksum,
|
||||
public_bucket_directory_hash: result_bucket_location.get_object_hash(),
|
||||
maybe_public_bucket_extension: None, // TODO(bt,2023-10-02): Add extension '.mp4'
|
||||
is_on_prem: args.job_dependencies.container.is_on_prem,
|
||||
worker_hostname: &args.job_dependencies.container.hostname,
|
||||
worker_cluster: &args.job_dependencies.container.cluster_name,
|
||||
|
||||
Reference in new issue
Block a user