The job script is saved in the database as a TextField, which has no maximum length based on Django documentation - so the limits is not related to Django.
Slurm has its own script size limit, that can be set with SchedulerParameters as max_script_size and this value by default is 4MB. This limit is kept as is on all Alliance clusters.
It could be a database/storage optimization, in which case, this parameter should be set on Django side of userportal, not the exporter.
Anything I am missing? Otherwise, I would suggest we remove the parameter and have slurm_jobscripts daemon export the entire scripts.
Here is what I found thus far:
SchedulerParameters
asmax_script_size
and this value by default is 4MB. This limit is kept as is on all Alliance clusters.Anything I am missing? Otherwise, I would suggest we remove the parameter and have slurm_jobscripts daemon export the entire scripts.