Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRoesler committed Jul 1, 2024
1 parent baf731c commit 9d27ea8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,13 +617,8 @@ func (s *scheduler) addOrUpdateJob(id uuid.UUID, definition JobDefinition, taskW
case <-s.shutdownCtx.Done():
}

return &job{
id: j.id,
name: j.name,
tags: slices.Clone(j.tags),
jobOutRequest: s.jobOutRequestCh,
runJobRequest: s.runJobRequestCh,
}, nil
out := s.jobFromInternalJob(j)
return &out, nil
}

func (s *scheduler) RemoveByTags(tags ...string) {
Expand Down

0 comments on commit 9d27ea8

Please sign in to comment.