-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Currently, a frequent error is caused by creating two databases with the same name, when testing for a matrix of Python versions. An effort should be put in making the DB name unique.
At present, the name looks like this: "1767970322"EMCP-runne
The first 10 characters is the unix timestamp, the next 4 characters is the project code and the rest is the client name, sometimes truncated, as in the above example.
The idea is to shorten the timestamp, for instance use the number of minutes since the start of the year (6 digits, or 5 in hex) and fill the freed space with a randomly generated string.
There are different ways of producing the random string with the highest chance of being unique across different machines. One is to use the VM hash as a seed - the jobs a likely to run on different VMs. Also can get the nanoseconds, etc.