Skip to content

Commit

Permalink
Fix submission wdl (#157)
Browse files Browse the repository at this point in the history
* Fix confirm-submission task

Add runtime_environment to
confirm submission task inputs
and pass it to the script along
with the service account key.

* Change pipeline-tools version for testing

* Fix image name

* Fix errors

* Update pipeline-tools version
  • Loading branch information
samanehsan authored Jul 5, 2019
1 parent 323eb91 commit 92f4983
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion adapter_pipelines/Optimus/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ workflow AdapterOptimus {
Int max_cromwell_retries = 0
Boolean add_md5s = false
String pipeline_tools_version = "v0.54.0"
String pipeline_tools_version = "v0.54.1"
call GetInputs as prep {
input:
Expand Down
2 changes: 1 addition & 1 deletion adapter_pipelines/cellranger/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ workflow Adapter10xCount {
Int max_cromwell_retries = 0
Boolean add_md5s = false
String pipeline_tools_version = "v0.54.0"
String pipeline_tools_version = "v0.54.1"
call GetInputs {
input:
Expand Down
2 changes: 1 addition & 1 deletion adapter_pipelines/ss2_single_end/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ workflow AdapterSmartSeq2SingleCellUnpaired {
Int max_cromwell_retries = 0
Boolean add_md5s = false
String pipeline_tools_version = "v0.54.0"
String pipeline_tools_version = "v0.54.1"
call GetInputs as prep {
input:
Expand Down
2 changes: 1 addition & 1 deletion adapter_pipelines/ss2_single_sample/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ workflow AdapterSmartSeq2SingleCell{
Int max_cromwell_retries = 0
Boolean add_md5s = false
String pipeline_tools_version = "v0.54.0"
String pipeline_tools_version = "v0.54.1"
call GetInputs as prep {
input:
Expand Down
5 changes: 4 additions & 1 deletion adapter_pipelines/submit.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ task confirm_submission {
Int? individual_request_timeout
Boolean record_http
String pipeline_tools_version
String runtime_environment
File service_account_key_path

command <<<
Expand All @@ -221,7 +222,9 @@ task confirm_submission {
export PYTHONUNBUFFERED=TRUE

# Confirm the submission
confirm-submission --envelope_url ${submission_url}
confirm-submission --envelope_url ${submission_url} \
--runtime_environment ${runtime_environment} \
--service_account_key_path ${service_account_key_path}
>>>

runtime {
Expand Down
1 change: 1 addition & 0 deletions adapter_pipelines/submit_stub/submit.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ workflow submit {
String pipeline_version
# Disk space to allocate for stage_files task
Int disk_space
File service_account_key_path = "gs://broad-dsde-mint-${runtime_environment}-credentials/caas_key.json"
call submit_stub
Expand Down
1 change: 0 additions & 1 deletion pipeline_tools/shared/submission/create_envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ def link_analysis_protocol_to_analysis_process(
response = http_requests.put(
link_url, headers=link_headers, data=analysis_protocol_url
)
return response.json()


def main():
Expand Down

0 comments on commit 92f4983

Please sign in to comment.