Add SLURM specific credentials
I'm currently testing the new cnes cluster using slurm and I'm experiencing some cnes-specific behaviour that wasn't anticipated when slurm was integrated into iota2. In fact a submission key become mandatory : "--account".
The purpose of this issue is to solve this specific behavior by introducing a new parameter to iota2 related to the user account. OR add a mechanism to add any specific key with value.
here some ideas
Solve the account key.
- add a new parameter into the configuration file named "account" for instance.
chain:{
account:'my_account'
}
- add a new iota2 launching parameter
Iota2.py ... -account my_account
- using a environment variable before every Iota2 launch
export SLURM_ACCOUNT='my_account'
More general solution
- introduce a dedicated section into the configuration file
slurm:{
account:'my_account'
}
I prefer the last solution which enable us to introduce any keys with or without control. Take as is every keys into the slurm section and feed the job writer with it, or use pydantic to check every keys format/values.
waiting for your feedback.