I have one UC4 running 6 clients. They are directing reports to a generic folder where runid is used for report uniqueness. So will the multiple clients provide unique RUNID's, or can two clients use the same RUNID?
We will probably add client# to either the report name or the folder name, but thought is was an interesting question!
As far as I
know, it is unique within the entire database.
But it need
not be unique throughout the entire lifetime of the system. If the ID is no
longer present in the database, it can be reused.
If the number space is exhausted, there will be an overflow and the ID starts
all over again.
I wonder if that's ever happened at someone. :)
You are 100% correct Guenter! RunIDs are not based upon the client but the database.
When I first started working at Automic (7 years ago), I had heard this had happened to a long-time customer who ran an unusually large amount of jobs. However, I can't remember if this was based in Applications Manager or the Automation Engine framework.
You could also add a date stamp to the filename - that way it would always be unique ...
FYI, RunIDs are actually handed out in batches to the WPs. So each WP gets a batch of 1000 and whenever a new one is needed, its picked off the top of the current batch. This guarantees uniqueness while allowing the WPs to operate independently and not make a ton of database calls prior to every activation.
What it doesn't guarantee is that the runIDs are in sequence, so don't count on a larger runID meaning it was run later.