adjust admin crawls info
This commit is contained in:
parent
4a74b00d46
commit
e000d29aa5
|
@ -39,8 +39,10 @@ func AdminCrawlsInfo(w http.ResponseWriter, r *http.Request) {
|
||||||
},
|
},
|
||||||
"initialCrawlElapsed": config.InitialCrawlElapsed,
|
"initialCrawlElapsed": config.InitialCrawlElapsed,
|
||||||
"elastic": map[string]interface{}{
|
"elastic": map[string]interface{}{
|
||||||
|
"deleteWorkers": map[string]interface{}{
|
||||||
"busy": elastic.BusyWorkers,
|
"busy": elastic.BusyWorkers,
|
||||||
"alive": config.GetConfig().ElasticsearchSyncThreads,
|
"alive": config.GetConfig().ElasticsearchSyncThreads,
|
||||||
|
},
|
||||||
"queue": map[string]interface{}{
|
"queue": map[string]interface{}{
|
||||||
"size": elastic.Queue.GetQueueSize(),
|
"size": elastic.Queue.GetQueueSize(),
|
||||||
},
|
},
|
||||||
|
@ -50,8 +52,8 @@ func AdminCrawlsInfo(w http.ResponseWriter, r *http.Request) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
defer elastic.RefreshSyncRunning.Release(1)
|
elastic.RefreshSyncRunning.Release(1)
|
||||||
defer elastic.FullSyncRunning.Release(1)
|
elastic.FullSyncRunning.Release(1)
|
||||||
|
|
||||||
w.Header().Set("Cache-Control", "no-store")
|
w.Header().Set("Cache-Control", "no-store")
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
|
Loading…
Reference in New Issue