Rethink user defined job metadata and ID
We need to improve the flexibility of the jobs allows users to attach there own semantic to each job. One way to do this is to change the job id into a more flexible format: a string.
For example, current users are using workload name to add semantics to the jobs they submit. This is wrong because it modify the workload semantic and force to submit profile when it is not necessary.
A simple solution would be to resubmit the job with id
1 that was killed can be named
1#1, if it is resubmitted again
1#2 and so on...
To conclude, make job ID a string instead of an integer. It would simplify greatly the code of the scheduler and prevent batsim to keep metadata of the job that it is not useful for batsim.
- Change the job id from int to string
Add documentation to
SET_JOB_METADATAto explain it's role