Skip to content

Commit

Permalink
Merge pull request volcano-sh#211 from k82cn/fix_cache_panic
Browse files Browse the repository at this point in the history
Fix job controller panic
  • Loading branch information
volcano-sh-bot authored Jun 1, 2019
2 parents 1dcdd32 + 3c4e012 commit fbd6f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (jc *jobCache) Run(stopCh <-chan struct{}) {
wait.Until(jc.worker, 0, stopCh)
}

func (jc jobCache) TaskCompleted(jobKey, taskName string) bool {
func (jc *jobCache) TaskCompleted(jobKey, taskName string) bool {
jc.Lock()
defer jc.Unlock()

Expand Down

0 comments on commit fbd6f2f

Please sign in to comment.