Skip to content

Commit

Permalink
fix change missed in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Oct 2, 2024
1 parent 961302f commit a5004bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/orchestrator/transformer/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ func applyBatchTaskDefaults(defaults types.BatchTaskDefaultConfig, task *models.
task.ResourcesConfig.GPU = defaults.Resources.GPU
}
// if the user didn't provide a publisher, and a default transformer is set - use it.
if task.Publisher.IsEmpty() && !defaults.Publisher.IsEmpty() {
task.Publisher = &defaults.Publisher
specConfig := defaults.Publisher.ToSpecConfig()
if task.Publisher.IsEmpty() && !specConfig.IsEmpty() {
task.Publisher = &specConfig
}
if task.Timeouts.ExecutionTimeout <= 0 {
task.Timeouts.ExecutionTimeout = int64(time.Duration(defaults.Timeouts.ExecutionTimeout).Seconds())
Expand Down

0 comments on commit a5004bb

Please sign in to comment.