Evan
Evan

Reputation: 477

Can I set default options for Slurm sbatch?

Is it possible for a user to set up a set of default parameters for job submissions? In particular, it would be nice to have all of my jobs give me status updates via email, without having to add this instruction to every job script.

Upvotes: 0

Views: 646

Answers (1)

Evan
Evan

Reputation: 477

I made a wrapper script:

#!/bin/bash
OPTS='--mail-type=ALL --mail-user=<address>'
sbatch $OPTS "$@"

Thanks to John Zwinck for the idea.

Upvotes: 1

Related Questions