diff --git a/contribs/torque/qsub.pl b/contribs/torque/qsub.pl index 1a5d88a4e761f6b4c0e48da93007872da4e77914..26226787c0f0c8cfa893ad627d37cbb4d0b59712 100755 --- a/contribs/torque/qsub.pl +++ b/contribs/torque/qsub.pl @@ -353,7 +353,14 @@ $command .= " -J $job_name" if $job_name; $command .= " --nice=$priority" if $priority; $command .= " -p $destination" if $destination; $command .= " --wckey=$wckey" if $wckey; -$command .= " --requeue" if $requeue && $requeue =~ 'y'; + +if ($requeue) { + if ($requeue =~ 'y') { + $command .= " --requeue"; + } elsif ($requeue =~ 'n') { + $command .= " --no-requeue" + } +} if ($script) { if ($wrap && $wrap =~ 'y') {