improved s5cmd sync on ec2

pull/852/head
Jingyi 2024-07-16 16:20:46 +08:00
parent 71242769d2
commit 78c912063e
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ if [ -n "$WORKFLOW_NAME" ]; then
echo "downloading comfy file $WORKFLOW_NAME ..."
start_at=$(date +%s)
s5cmd --log=error sync "s3://$S3_BUCKET_NAME/comfy/workflows/$WORKFLOW_NAME/*" "/home/ubuntu/"
s5cmd sync "s3://$S3_BUCKET_NAME/comfy/workflows/$WORKFLOW_NAME/*" "/home/ubuntu/"
end_at=$(date +%s)
export DOWNLOAD_FILE_SECONDS=$((end_at-start_at))
echo "download file: $DOWNLOAD_FILE_SECONDS seconds"