Skip to content

Commit

Permalink
runner.aws_batch: Omit vcpus and memory from the job submission when …
Browse files Browse the repository at this point in the history
…unspecified

These parameters may be None, which is not allowed in the job
submission.  Trying to do so raises an exception.
  • Loading branch information
tsibley committed Feb 22, 2019
1 parent c32d685 commit d5cbcb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextstrain/cli/runner/aws_batch/jobs.py
Expand Up @@ -142,8 +142,8 @@ def submit(name: str,
}, },
*forwarded_environment(), *forwarded_environment(),
], ],
"vcpus": cpus, **({ "vcpus": cpus } if cpus else {}),
"memory": memory, **({ "memory": memory } if memory else {}),
"command": [ "command": [
"/sbin/entrypoint-aws-batch", "/sbin/entrypoint-aws-batch",
*exec *exec
Expand Down

0 comments on commit d5cbcb3

Please sign in to comment.