Skip to content

Commit

Permalink
Allow blank concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Dec 10, 2016
1 parent a10e190 commit dcccf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkron/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (s *Store) validateJob(job *Job) error {
return ErrNoCommand
}

if job.Concurrency != ConcurrencyAllow && job.Concurrency != ConcurrencyForbid {
if job.Concurrency != ConcurrencyAllow || job.Concurrency != ConcurrencyForbid || job.Concurrency != "" {
return ErrWrongConcurrency
}

Expand Down

0 comments on commit dcccf55

Please sign in to comment.