Skip to content

pbs: honour walltime and account target options#428

Merged
dansondergaard merged 1 commit into
gwforg:masterfrom
nicorap:pbs-walltime-account
May 27, 2026
Merged

pbs: honour walltime and account target options#428
dansondergaard merged 1 commit into
gwforg:masterfrom
nicorap:pbs-walltime-account

Conversation

@nicorap

@nicorap nicorap commented May 27, 2026

Copy link
Copy Markdown
Contributor

The PBS backend's TARGET_DEFAULTS currently lists only queue, memory,
and cores. Any target that sets walltime or account triggers 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:

  • 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 in compile_script - the -A line is omitted entirely when
    no account is configured, so sites that don't use accounting are
    unaffected.
  • Docstring updated.

Tested under OpenPBS/Moab at the Danish National Genome Center

  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.
@nicorap

nicorap commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@micknudsen I hope that's ok I added these!

@dansondergaard

Copy link
Copy Markdown
Collaborator

Thanks a lot for the contribution, @nicorap!

@dansondergaard
dansondergaard merged commit a96e2aa into gwforg:master May 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants