Skip to content

Commit

Permalink
Merge pull request #124 from biomage-org/staging-batch-jobdef
Browse files Browse the repository at this point in the history
[BIOMAGE-2328] - Add sandbox id to batch jobdef
  • Loading branch information
aerlaut authored Mar 7, 2023
2 parents fb04e41 + 35b1ed5 commit eab5c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const submitBatchJob = (context, step) => {
Type: 'Task',
Resource: 'arn:aws:states:::batch:submitJob',
Parameters: {
JobDefinition: `job-pipeline-${environment}`,
JobDefinition: `job-pipeline-${environment}-${config.sandboxId}`,
JobName: `${environment}-${experimentId}-${processName}`, // changing the name will break job termination when a new one is submitted
JobQueue: `queue-pipeline-${environment}`,
ContainerOverrides: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ exports[`non-tests to document the State Machines - qc production with specific
"Type": "Task",
"Resource": "arn:aws:states:::batch:submitJob",
"Parameters": {
"JobDefinition": "job-pipeline-production",
"JobDefinition": "job-pipeline-production-default",
"JobName": "production-mock-experiment-id-qc",
"JobQueue": "queue-pipeline-production",
"ContainerOverrides": {
Expand Down

0 comments on commit eab5c2e

Please sign in to comment.