Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Replace service_account_json (file) with service_account_json_path (string) to allow call-caching #7347

Merged
merged 5 commits into from
Jul 15, 2021

Conversation

rsasch
Copy link

@rsasch rsasch commented Jul 13, 2021

Otherwise, when json is refreshed, contents of the file are different, hash of the file is different, and call-caching will not register a match, despite the same "account" being used.

  • changed input type from File to String
  • changed the name to make it more obvious/clear

Closes https://github.com/broadinstitute/dsp-spec-ops/issues/327

Copy link
Contributor

@RoriCremer RoriCremer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the proj id is the only thing I'm worried about---but maybe I just dont understand


# runtime
Int? preemptible_tries
}

String has_service_account_file = if (defined(service_account_json)) then 'true' else 'false'
String has_service_account_file = if (defined(service_account_json_path)) then 'true' else 'false'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are these a string and not a boolean?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess would be that testing a boolean value in bash that was set in WDL is not particularly straightforward.

scripts/variantstore/wdl/GvsImportGenomes.wdl Show resolved Hide resolved
@rsasch rsasch merged commit 9d08525 into ah_var_store Jul 15, 2021
@rsasch rsasch deleted the rsa_sa_file_to_path branch July 15, 2021 17:01
This was referenced Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants