Semantic (vector-embedded) index batches can take Meilisearch many
minutes on modest hardware, and Meilisearch auto-batches consecutive
queued document tasks — with rebuild_task_queue_depth tasks in flight
the oldest task's completion covers the whole fused unit. WaitTask's
5-minute default deadline killed four prod rebuilds mid-batch
(2026-06-29 x2, 2026-07-08 x2) with "context deadline exceeded", each
time leaving incremental sync blocked on a stale schema version and an
unbounded event backlog (1.6M+ events).
The wait still exits immediately when the task reaches a terminal state
(succeeded/failed/canceled); the deadline only bounds tasks genuinely
still processing, where giving up guarantees rebuild failure and gains
nothing.
Co-authored-by: rxwatcher <rxwatcher@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>