This PR is one possible fix for #50: before adding the datetime stamp (which adds 12 characters, -dddHHhMMmSS) and the random hex (7 characters, -XXXXXX), this truncates the RUNID to be at most 44 characters so that the job name will always be 63 characters or fewer (44 + 12 + 7).
IIUC, this should still be compatible with things like K8sClusterManagers.jl which use generateName since that does its own truncation.
Wouldn't it be better to cut -c 1-44 after the sed, since the sed can contract the RUNID by replacing several contiguous non-alphanumeric chars with a single '-'?
This PR is one possible fix for #50: before adding the datetime stamp (which adds 12 characters,
-dddHHhMMmSS
) and the random hex (7 characters,-XXXXXX
), this truncates the RUNID to be at most 44 characters so that the job name will always be 63 characters or fewer (44 + 12 + 7).IIUC, this should still be compatible with things like K8sClusterManagers.jl which use
generateName
since that does its own truncation.