Skip to content

Commit

Permalink
Add additional GCS root workflow option key
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-schu committed Nov 27, 2024
1 parent 60b70c7 commit 1af1359
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ trait WorkflowSubmission extends FutureSupport with LazyLogging with MethodWiths
if (useCromwellGcpBatchBackend) CromwellBackend("GCPBatch") else highSecurityNetworkCromwellBackend

executionServiceWorkflowOptions = ExecutionServiceWorkflowOptions(
submission.submissionRoot,
submission.submissionRoot,
final_workflow_outputs_dir,
final_workflow_outputs_dir_metadata,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ class WorkflowSubmissionSpec(_system: ActorSystem)
Some(
ExecutionServiceWorkflowOptions(
jes_gcs_root = s"gs://${testData.workspace.bucketName}/${testData.submission1.submissionId}",
gcp_batch_gcs_root = s"gs://${testData.workspace.bucketName}/${testData.submission1.submissionId}",
None,
None,
google_project = testData.workspace.googleProjectId.value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class ExecutionModelSpec extends AnyFlatSpec with Matchers {
"ExecutionServiceWorkflowOptions" should "serialize/deserialize to/from JSON" in {
val test = ExecutionServiceWorkflowOptions(
jes_gcs_root = "jes_gcs_root",
gcp_batch_gcs_root = "gcp_batch_gcs_root",
final_workflow_outputs_dir = None,
final_workflow_outputs_dir_metadata = None,
google_project = "google_project",
Expand Down Expand Up @@ -162,6 +163,7 @@ class ExecutionModelSpec extends AnyFlatSpec with Matchers {
"""
|{
| "jes_gcs_root": "jes_gcs_root",
| "gcp_batch_gcs_root": "gcp_batch_gcs_root",
| "google_project": "google_project",
| "account_name": "account_name",
| "google_compute_service_account": "[email protected]",
Expand Down Expand Up @@ -192,6 +194,7 @@ class ExecutionModelSpec extends AnyFlatSpec with Matchers {
"""
|{
| "jes_gcs_root": "jes_gcs_root",
| "gcp_batch_gcs_root": "gcp_batch_gcs_root",
| "google_project": "google_project",
| "account_name": "account_name",
| "google_compute_service_account": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ case class ExecutionServiceCallLogs(
// https://cromwell.readthedocs.io/en/stable/wf_options/Google/
case class ExecutionServiceWorkflowOptions(
jes_gcs_root: String,
gcp_batch_gcs_root: String,
final_workflow_outputs_dir: Option[String],
final_workflow_outputs_dir_metadata: Option[String],
google_project: String,
Expand Down Expand Up @@ -469,7 +470,7 @@ trait ExecutionJsonSupport extends JsonSupport {

implicit val ExecutionServiceLogsFormat: RootJsonFormat[ExecutionServiceLogs] = jsonFormat2(ExecutionServiceLogs)

implicit val ExecutionServiceWorkflowOptionsFormat: RootJsonFormat[ExecutionServiceWorkflowOptions] = jsonFormat20(
implicit val ExecutionServiceWorkflowOptionsFormat: RootJsonFormat[ExecutionServiceWorkflowOptions] = jsonFormat21(
ExecutionServiceWorkflowOptions
)

Expand Down

0 comments on commit 1af1359

Please sign in to comment.