mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Merge #2243
2243: bug(http): fix panic on startup r=MarinPostma a=MarinPostma this seems to fix #2242 I am not sure why this doesn't reproduce on v0.26.0, so we should remain vigilant. `@curquiza` FYI Co-authored-by: ad hoc <postma.marin@protonmail.com>
This commit is contained in:
commit
b2bbd13c27
@ -52,20 +52,20 @@ pub struct SchedulerConfig {
|
|||||||
|
|
||||||
// The maximum number of updates of the same type that can be batched together.
|
// The maximum number of updates of the same type that can be batched together.
|
||||||
// If unspecified, this is unlimited. A value of 0 is interpreted as 1.
|
// If unspecified, this is unlimited. A value of 0 is interpreted as 1.
|
||||||
#[clap(long, requires = "enable-autobatching", hide = true)]
|
#[clap(long, requires = "enable-auto-batching", hide = true)]
|
||||||
pub max_batch_size: Option<usize>,
|
pub max_batch_size: Option<usize>,
|
||||||
|
|
||||||
// The maximum number of documents in a document batch. Since batches must contain at least one
|
// The maximum number of documents in a document batch. Since batches must contain at least one
|
||||||
// update for the scheduler to make progress, the number of documents in a batch will be at
|
// update for the scheduler to make progress, the number of documents in a batch will be at
|
||||||
// least the number of documents of its first update.
|
// least the number of documents of its first update.
|
||||||
#[clap(long, requires = "enable-autobatching", hide = true)]
|
#[clap(long, requires = "enable-auto-batching", hide = true)]
|
||||||
pub max_documents_per_batch: Option<usize>,
|
pub max_documents_per_batch: Option<usize>,
|
||||||
|
|
||||||
/// Debounce duration in seconds
|
/// Debounce duration in seconds
|
||||||
///
|
///
|
||||||
/// When a new task is enqueued, the scheduler waits for `debounce_duration_sec` seconds for new updates before
|
/// When a new task is enqueued, the scheduler waits for `debounce_duration_sec` seconds for new updates before
|
||||||
/// starting to process a batch of updates.
|
/// starting to process a batch of updates.
|
||||||
#[clap(long, requires = "enable-autobatching", hide = true)]
|
#[clap(long, requires = "enable-auto-batching", hide = true)]
|
||||||
pub debounce_duration_sec: Option<u64>,
|
pub debounce_duration_sec: Option<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user