Skip to content

Commit

Permalink
Merge branch 'release/1.3.x' into backport/b-gh-11052/steadily-adapti…
Browse files Browse the repository at this point in the history
…ng-tortoise
  • Loading branch information
Juanadelacuesta committed Mar 27, 2023
2 parents 1b61b24 + 44664f7 commit 6041961
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nomad/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func (s *Server) restorePeriodicDispatcher() error {
continue
}

if _, err := s.periodicDispatcher.ForceRun(job.Namespace, job.ID); err != nil {
if _, err := s.periodicDispatcher.ForceEval(job.Namespace, job.ID); err != nil {
logger.Error("force run of periodic job failed", "job", job.NamespacedID(), "error", err)
return fmt.Errorf("force run of periodic job %q failed: %v", job.NamespacedID(), err)
}
Expand Down
2 changes: 1 addition & 1 deletion nomad/periodic.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (p *PeriodicDispatch) removeLocked(jobID structs.NamespacedID) error {
return nil
}

// ForceRun causes the periodic job to be evaluated immediately and returns the
// ForceEval causes the periodic job to be evaluated immediately and returns the
// subsequent eval.
func (p *PeriodicDispatch) ForceEval(namespace, jobID string) (*structs.Evaluation, error) {
p.l.Lock()
Expand Down

0 comments on commit 6041961

Please sign in to comment.