mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 04:36:32 +00:00
Stop storing the cli webhook in the db
This commit is contained in:
@ -26,7 +26,6 @@ use meilisearch_types::error::ResponseError;
|
||||
use meilisearch_types::heed::{Env, WithoutTls};
|
||||
use meilisearch_types::milli;
|
||||
use meilisearch_types::tasks::Status;
|
||||
use meilisearch_types::webhooks::Webhooks;
|
||||
use process_batch::ProcessBatchInfo;
|
||||
use rayon::current_num_threads;
|
||||
use rayon::iter::{IntoParallelIterator, ParallelIterator};
|
||||
@ -448,9 +447,8 @@ impl IndexScheduler {
|
||||
})?;
|
||||
|
||||
// We shouldn't crash the tick function if we can't send data to the webhooks
|
||||
let webhooks = self.cached_webhooks.read().unwrap_or_else(|p| p.into_inner());
|
||||
let webhooks = self.webhooks();
|
||||
if !webhooks.webhooks.is_empty() {
|
||||
let webhooks = Webhooks::clone(&*webhooks);
|
||||
let cloned_index_scheduler = self.private_clone();
|
||||
std::thread::spawn(move || {
|
||||
if let Err(e) = cloned_index_scheduler.notify_webhooks(webhooks, &ids) {
|
||||
|
Reference in New Issue
Block a user