Skip to content

Commit

Permalink
Allow setting the service account email when creating a Google Batch …
Browse files Browse the repository at this point in the history
…CE (#426)
  • Loading branch information
JaimeSeqLabs authored Sep 11, 2024
1 parent 5adbb9e commit 98f8b61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=17.0.8-graalce
java=21.0.4-graal
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ public GoogleBatchConfig computeConfig() throws ApiException, IOException {
// Advanced
if (adv != null) {
config
.usePrivateAddress(adv.usePrivateAddress)
.bootDiskSizeGb(adv.bootDiskSizeGb)
.headJobCpus(adv.headJobCpus)
.headJobMemoryMb(adv.headJobMemoryMb);
.usePrivateAddress(adv.usePrivateAddress)
.bootDiskSizeGb(adv.bootDiskSizeGb)
.headJobCpus(adv.headJobCpus)
.headJobMemoryMb(adv.headJobMemoryMb)
.serviceAccount(adv.serviceAccountEmail);
}

return config;
Expand All @@ -87,5 +88,9 @@ public static class AdvancedOptions {

@Option(names = {"--head-job-memory"}, description = "The number of MiB of memory reserved for the Nextflow runner job (value should be a multiple of 256MiB and from 0.5 GB to 8 GB per CPU).")
public Integer headJobMemoryMb;

@Option(names = {"--service-account-email"}, description = "The service account email address used when deploying pipeline executions with this compute environment.")
public String serviceAccountEmail;

}
}

0 comments on commit 98f8b61

Please sign in to comment.