Skip to content

Commit

Permalink
Merge branch 'devel' of github.com:grycap/oscar into dev-slangarita
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioLangaritaBenitez committed Dec 5, 2024
2 parents 473c04a + 4952f97 commit b46c7cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/handlers/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,14 @@ func MakeJobHandler(cfg *types.Config, kubeClientset kubernetes.Interface, back
}

// Make JOB_UUID envVar
serviceNameLenght := len(service.Name)
serviceName := service.Name
jobUUID := uuid.New().String()
jobUUID = service.Name + "-" + jobUUID

if serviceNameLenght >= 25 {
serviceName = serviceName[:16]
}
jobUUID = serviceName + "-" + jobUUID
jobUUIDVar := v1.EnvVar{
Name: types.JobUUIDVariable,
Value: jobUUID,
Expand Down

0 comments on commit b46c7cd

Please sign in to comment.