Rethink user defined job metadata and ID
Problematic
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.
Example
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...
Conclusion
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.
TODO
-
Change the job id from int to string -
Add documentation to SET_JOB_METADATA
to explain it's role