Okay, i looked at the code and seems like that would work, but I can't
figure out how one would detect the invocation through
srun/salloc/sbatch to make the decision on which partition to use

i would think there would need to be another field added to the
job_desc struct to list the called method, but I'm probably quite
wrong...


On Fri, Feb 4, 2011 at 5:56 PM, Jette, Moe <[email protected]> wrote:
> The job submit plugin added to slurm version 2.2 would be ideal for this
>
> See "JobSubmitPlugins" in "man slurm.conf",
> See: https://computing.llnl.gov/linux/slurm/job_submit_plugins.html
> and see the examples in the SLURM tar-ball, especially:
> src/plugins/job_submit/partition
> ________________________________________
> From: [email protected] [[email protected]] On 
> Behalf Of Michael Di Domenico [[email protected]]
> Sent: Friday, February 04, 2011 9:53 AM
> To: slurm-dev
> Subject: [slurm-dev] default queue by command
>
> Is it possible to set the default partition for each of the s* commands?
>
> For example:
>
> srun -> defaults to prod queue (interactive use)
> salloc -> defaults to prod queue (interactive use)
> sbatch -> defaults to nightly queue (batched) (runs at night only)
>
> We've thought about overloading the sbatch command by forcing "-p
> nightly" as being an option, but I'm not sure what would happen when
> someone tried to "sbatch -p prod" and effectively has two -p options
> on the command line
>
>

Reply via email to