-
Notifications
You must be signed in to change notification settings - Fork 20
Description
The --cpus and --memory options for nextstrain build don't work with newer AWS Batch job definitions that use entries in resourceRequirements (instead of separate vcpus and memory properties) to declare default CPU and memory requirements.
More information on this deprecation is at https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#override-resource-requirements and displayed in a tooltip in the AWS console:
This value was submitted using containerOverrides.vcpus which has been deprecated and was not used as an override. Instead, the VCPU value found in the job definition's resourceRequirements key was used instead. More information about the deprecated key can be found in the AWS Batch API documentation.
Our initial troubleshooting happened in Slack.
Notably, using the AWS console to modify an existing job definition which uses vcpus and memory will switch to resourceRequirements in the new revision. However, you can still create definitions using vcpus and memory via the AWS API or CLI, e.g. aws batch register-job-definition.
Ideal result would be supporting both kinds of job definitions without much extra effort. Maybe defining overrides in resourceRequirements during submission will work with both kinds of definitions? Should test.