gpt4 book ai didi

amazon-web-services - 在提交 AWS 批处理作业时获取最新的作业修订,而无需指定确切的修订号

转载 作者:行者123 更新时间:2023-12-04 08:14:59 25 4
gpt4 key购买 nike

我正在使用 AWSBatch Java 客户端 com.amazonaws.services.batch (AWS SDK for Java - 1.11.483)以编程方式提交作业。

然而,我们的科学家不断更新工作定义。
每次有新的作业定义时,我都必须使用修订号更新环境变量以将其传递给客户端。
AWS documentation指出

This value can be either a name:revision or the Amazon Resource Name (ARN) for the job definition.



有什么方法可以将其默认为最新版本,并且每次提交 BatchJob 时,都会在不知道最新版本的情况下选择最新版本?

最佳答案

来自 AWS Batch SubmitJob API 引用。

jobDefinition

The job definition used by this job. This value can be one of name,name:revision, or the Amazon Resource Name (ARN) for the jobdefinition. If name is specified without a revision then the latestactive revision is used.


也许文档现在已经更新。

关于amazon-web-services - 在提交 AWS 批处理作业时获取最新的作业修订,而无需指定确切的修订号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54430418/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com