-
Notifications
You must be signed in to change notification settings - Fork 634
Description
Snakemake version
7.25.0
Describe the bug
When a slurm account name is longer than 20 characters, it is impossible to submit jobs using slurm. Snakemake seems to query slurm for valid account names and names longer than 20 characters are truncated with a '+' at position 21. If I don't specify my account name, snakemake will use the truncated version (dept-bioinformatics+) and get rejected by slurm. If I do specify my full account name with slurm_account=dept-bioinformatics-facility, it is rejected by snakemake.
Minimal example
The account name that my user is assigned to is 'dept-bioinformatics-facility'. When I run snakemake with slurm, without specifying the account, I get:
No SLURM account given, trying to guess.
Guessed SLURM account: dept-bioinformatics+
WorkflowError:
SLURM job submission failed. The error message was sbatch: error: Batch job submission failed: Invalid account or account/partition combination specified
If I do specify my full account name in my profile, I get:
WorkflowError:
The given account dept-bioinformatics-facility appears to be invalid. Available accounts:
dept-bioinformatics+
And for good measure, if I explicitly specify the truncated version I get a snakemake error...although maybe I'm not specifying it properly:
Error:
WorkflowError:
Failed to evaluate default resources value 'dept-bioinformatics+'.
FYI, here is how the truncated version is specified in my config:
default-resources:
- slurm_walltime=3600
- slurm_partition=compute
- slurm_account=dept-bioinformatics+For now, our sysadmin has been kind enough to add a secondary account for my department with a shorter name. That works for the time being, but this likely should be fixed in the snakemake code base. I'd be happy to contribute if I could be directed to the relevant section of the code that pulls this info.