(maint) Add more uniqueness to jobid

Before this change there was a non zero chance that two requests could be received
at the same millisecond and have the same jobid. Added the username as a prefix
to the job id
This commit is contained in:
Samuel Beaulieu 2020-10-09 10:23:23 -05:00
parent a4231cc6f1
commit e0fac0bb6c

View file

@ -248,7 +248,7 @@ class ABS
conn = Http.get_conn(verbose, url)
conn.headers['X-AUTH-TOKEN'] = token if token
saved_job_id = DateTime.now.strftime('%Q')
saved_job_id = user + "-" + DateTime.now.strftime('%Q')
vmpooler_config = Utils.get_vmpooler_service_config(config['vmpooler_fallback'])
req_obj = {
:resources => os_types,