Skip to content

Commit

Permalink
Fix Aws spot attempts with zero value
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Sep 25, 2024
1 parent 4b63327 commit c8af013
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 c8af013

Please sign in to comment.