pbs: honour walltime and account target options#428
Merged
Conversation
PBS backend silently dropped walltime and account from TARGET_DEFAULTS,
making long jobs hit cluster default walltimes and ignoring accounting
on sites that require -A.
- walltime: added to TARGET_DEFAULTS (default 01:00:00) and emitted as
#PBS -l walltime={walltime}.
- account: added to TARGET_DEFAULTS (default "") with conditional
emission - the #PBS -A line is omitted when empty so sites that don't
use accounting are unaffected.
Contributor
Author
|
@micknudsen I hope that's ok I added these! |
Collaborator
|
Thanks a lot for the contribution, @nicorap! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PBS backend's
TARGET_DEFAULTScurrently lists onlyqueue,memory,and
cores. Any target that setswalltimeoraccounttriggers the"Option X not supported by backend. Ignored." warning and qsub falls back
to the cluster's default walltime / no accounting. On sites with short
defaults this silently kills long-running jobs; on sites that require an
account string for billing, jobs can't be submitted at all.
Both options are already standard on the SLURM backend, and PBS itself
universally supports
#PBS -l walltime=...and#PBS -A <account>(Torque, OpenPBS, PBS Pro).
Changes:
walltimeadded toTARGET_DEFAULTS(default01:00:00) and emittedas
#PBS -l walltime={walltime}.accountadded toTARGET_DEFAULTS(default"") with conditionalemission in
compile_script- the-Aline is omitted entirely whenno account is configured, so sites that don't use accounting are
unaffected.
Tested under OpenPBS/Moab at the Danish National Genome Center