Skip to content

Commit

Permalink
Merge branch 'trs/botocore-1.28.0-compat'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsibley committed Mar 2, 2023
2 parents e9f11e6 + 0b23ebf commit bf71a9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ development source code and as such may not be routinely kept up to date.

# __NEXT__

## Bug fixes

* We've fixed and future-proofed a compatibility bug with a third-party library
that can occur under very specific conditions when `nextstrain build` submits
AWS Batch jobs.
([#261](https://github.com/nextstrain/cli/pull/261))


# 6.2.0 (28 February 2023)

Expand Down
6 changes: 4 additions & 2 deletions nextstrain/cli/runner/aws_batch/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@ def override_definition(base_definition_name: str, image: str) -> str:
derived_definition["jobDefinitionName"] = derived_definition_name
derived_definition["containerProperties"]["image"] = image

# These are AWS-assigned keys returned by describe_job_definitions() which
# Remove AWS-assigned keys returned by describe_job_definitions() which
# aren't supported as keyword arguments by register_job_definition().
for key in {'jobDefinitionArn', 'revision', 'status'}:
register_inputs = batch.meta.service_model.operation_model("RegisterJobDefinition").input_shape.members

for key in set(derived_definition) - set(register_inputs):
del derived_definition[key]

batch.register_job_definition(**derived_definition)
Expand Down

0 comments on commit bf71a9d

Please sign in to comment.