summaryrefslogtreecommitdiffstats
path: root/jobs/jobs_watcher.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-07-11 09:09:15 +0100
committerGitHub <noreply@github.com>2017-07-11 09:09:15 +0100
commit83d53ea98cf5486f89bd4280b6b5ef835da4fd22 (patch)
tree1977949d599b3ce3b023f8699854d974be4d92a8 /jobs/jobs_watcher.go
parent0cc60abf6a33dca0d8317481f83d0eb2771f43a1 (diff)
downloadchat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.tar.gz
chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.tar.bz2
chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.zip
PLT-6475: Elasticsearch Indexing Worker. (#6879)
Diffstat (limited to 'jobs/jobs_watcher.go')
-rw-r--r--jobs/jobs_watcher.go7
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:
+ }
+ }
}
}
}