Skip to content

Commit

Permalink
Fix AWS spot attempts with zero value (#5331) [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso authored Sep 25, 2024
1 parent ad6d9ba commit bac2da1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class AwsBatchConfig implements CloudTransferOptions {
maxParallelTransfers = opts.maxParallelTransfers as Integer ?: MAX_TRANSFER
maxTransferAttempts = opts.maxTransferAttempts as Integer ?: defaultMaxTransferAttempts()
delayBetweenAttempts = opts.delayBetweenAttempts as Duration ?: DEFAULT_DELAY_BETWEEN_ATTEMPTS
maxSpotAttempts = opts.maxSpotAttempts as Integer ?: DEFAULT_MAX_SPOT_ATTEMPTS
maxSpotAttempts = opts.maxSpotAttempts!=null ? opts.maxSpotAttempts as Integer : DEFAULT_MAX_SPOT_ATTEMPTS
volumes = makeVols(opts.volumes)
jobRole = opts.jobRole
logsGroup = opts.logsGroup
Expand Down

0 comments on commit bac2da1

Please sign in to comment.