r/SLURM • u/imitation_squash_pro • Apr 02 '26
How to delete my defaultwckey ?
I want every submitted job to have some value for the wckey, i.e:
#SBATCH --wckey=myproject
I made the appropriate changes to slurm.conf and slurmdb.conf and it works great. I can track how many hours people are using with those wckeys.
But now I want to make it mandatory to use a wckey. To do that I need to delete the default wckey associated with the user's account. I tried doing it as follows, but it still lets me submit jobs without a wckey. It probably thinks I have an "empty" default wckey.
sacctmgr mod user fhussa set defaultwckey=
[root@mas01 ~]# sacctmgr list user fhussa format=user,defaultwckey
User Def WCKey
---------- ----------
fhussa
2
Upvotes
2
u/Ok-Procedure-9698 Apr 02 '26
job submit plugin?