Meilisearch operations like creating an index, adding documents, or updating settings are asynchronous and generate tasks. You can monitor these tasks to ensure operations complete successfully.
Key capabilities demonstrated in the task management workflow include:
- Waiting for completion: Blocking until a specific task reaches a terminal state.
- Retrieving details: Fetching specific information for a single task using its ID.
- Listing tasks: Retrieving a collection of tasks.
- Filtering: Narrowing down task lists by specific criteria, such as task type (e.g., filtering for only
documentAdditionOrUpdate operations).
Task metadata includes the Task ID, type, status (enqueued, processing, succeeded, failed), start/finish timestamps, duration, and error details in case of failure.