stamp every <service>Job with an UUID
Each time .Process() is called here:
// Iterate over the jobs we have for a given action, then see if
// they are also present in the corresponding state, if yes then
// run them
for _, actionJob := range actionJobMap[m.Inner.Action] {
for _, stateJob := range stateJobMap[m.Inner.State] {
if actionJob == stateJob {
wg.Add(1)
actionJob.Process(m, &wg)
}
}
}
the called Process()
function should append an UUIDv4 to the log structure,
this gives us an unique identifier for every single job that is done.