-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow "unpack_archive_to_bucket"; add task "unpack_archive_to_…
…bucket_path" This adds a new WDL task, "unpack_archive_to_bucket_path", to unpack an input tarball to a specified bucket path, with options to set the target destination, layers of wrapping directories to remove (from around the tarball contents), and whether the files extracted should be uploaded directly via pipe or from a temporary location on-disk. This task is intended to run on Terra, but it can be run elsewhere if a Google Cloud auth token is passed in to the task. A corresponding workflow, unpack_archive_to_bucket, is also added.
- Loading branch information
Showing
3 changed files
with
210 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version 1.0 | ||
|
||
import "../tasks/tasks_utils.wdl" as tasks_utils | ||
import "../tasks/tasks_terra.wdl" as tasks_terra | ||
|
||
workflow unpack_archive_to_bucket { | ||
meta { | ||
description: "Unpack archive(s) to a target location within a Google Storage bucket" | ||
author: "Broad Viral Genomics" | ||
email: "[email protected]" | ||
|
||
allowNestedInputs: true | ||
} | ||
|
||
input { | ||
String? gcloud_auth_token | ||
} | ||
|
||
call tasks_terra.check_terra_env | ||
|
||
if( (check_terra_env.is_running_on_terra && check_terra_env.is_backed_by_gcp) || defined(gcloud_auth_token) ) { | ||
call tasks_utils.unpack_archive_to_bucket_path | ||
} | ||
} |