diff options
Diffstat (limited to 'jobs/jobs_watcher.go')
-rw-r--r-- | jobs/jobs_watcher.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jobs/jobs_watcher.go b/jobs/jobs_watcher.go index ada957ccc..5979d6207 100644 --- a/jobs/jobs_watcher.go +++ b/jobs/jobs_watcher.go @@ -79,6 +79,13 @@ func (watcher *Watcher) PollAndNotify() { default: } } + } else if js.Type == model.JOB_TYPE_SEARCH_INDEXING { + if watcher.workers.ElasticsearchIndexing != nil { + select { + case watcher.workers.ElasticsearchIndexing.JobChannel() <- j: + default: + } + } } } } |