Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update wdl to get right output from task #77

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions wdl/HardCloneWorkspace/HardCloneWorkspace.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ workflow HardCloneTerraWorkspace {
}

if (rsync_workspace) {
String source_bucket = read_string(HardCloneTerraWorkspaceTask.src_bucket)
String dest_bucket = read_string(HardCloneTerraWorkspaceTask.dest_bucket)
call gcp_utils.GcloudRsync {
input:
source=source_bucket,
destination=dest_bucket
source=HardCloneTerraWorkspaceTask.src_bucket,
destination=HardCloneTerraWorkspaceTask.dest_bucket
}
}
}
Expand Down Expand Up @@ -75,8 +73,8 @@ task HardCloneTerraWorkspaceTask {
>>>

output {
String dest_bucket = "dest_workspace_bucket.txt"
String src_bucket = "source_workspace_bucket.txt"
String dest_bucket = read_string("dest_workspace_bucket.txt")
String src_bucket = read_string("source_workspace_bucket.txt")
}

runtime {
Expand Down
2 changes: 1 addition & 1 deletion wdl/utils/GcpUtils.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ task GcloudRsync {
# Note that this is a Python regular expression, not a pure wildcard pattern. For example,
# matching a string ending in "abc" is .*abc$ rather than *abc. Also note that the exclude path is relative,
# as opposed to absolute (similar to Linux rsync and tar exclude options).
gcloud storage rsync --recursive ${source} ${destination} ${"--exclude=" + exclude_regex}
gcloud storage rsync --recursive ~{source} ~{destination} ~{"--exclude= " + exclude_regex}
>>>

runtime {
Expand Down
Loading