Skip to content

Commit bbba0ca

Browse files
GallVpjealous
authored andcommitted
[GH-110] Removed implicit retry with onDemand
1 parent 49c92d7 commit bbba0ca

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

plugins/nf-float/src/main/com/memverge/nextflow/FloatGridExecutor.groovy

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,6 @@ fi
452452
if (floatConf.extraOptions) {
453453
cmd << '--extraOptions' << floatConf.extraOptions
454454
}
455-
if (task.config.getAttempt() > 1) {
456-
cmd << '--vmPolicy' << '[onDemand=true]'
457-
}
458455
cmd.addAll(getExtra(task))
459456
log.info "[FLOAT] submit job: ${floatConf.toLogStr(cmd)}"
460457
return cmd

plugins/nf-float/src/test/com/memverge/nextflow/FloatGridExecutorTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ class FloatGridExecutorTest extends FloatBaseTest {
532532
cmd.join(' ').contains('--timeLimit 3960s')
533533
}
534534

535-
def "use on-demand for retry"() {
535+
def "No implicit on-demand for retry"() {
536536
given:
537537
final exec = newTestExecutor(
538538
[float: [address : addr,
@@ -549,7 +549,7 @@ class FloatGridExecutorTest extends FloatBaseTest {
549549
final cmd = exec.getSubmitCommandLine(task, Paths.get(script))
550550

551551
then:
552-
cmd.join(' ').contains('onDemand=true')
552+
! cmd.join(' ').contains('onDemand=true')
553553
}
554554

555555
def "use cpu factor"() {

0 commit comments

Comments
 (0)