Skip to content

Commit

Permalink
job/task: Create UUID for active task
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <a.jung@lancs.ac.uk>
  • Loading branch information
nderjung committed Dec 20, 2020
1 parent 02bd36e commit f81b358
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions job/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ type ActiveTaskRun struct {
CoreIds []int // the exact core numbers this task is using
log *log.Logger
}

// UUID returns the Unique ID for the task and run
func (atr *ActiveTaskRun) UUID() string {
return fmt.Sprintf("%s-%s", atr.Task.UUID(), atr.run.Name)
}

0 comments on commit f81b358

Please sign in to comment.