/
githubmirror
/
meilisearch
Обзор
Документация
Войти
/
githubmirror
/
meilisearch
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
workloads/tests/task_queue_compaction.json
93 строки
2 KB
Clément Renault
Update the workload test for the task queue compaction
22 апр 2026, 13:16
Не верифицирован
22 апр 2026, 13:16
4d9aeb9
Код
Авторство
О чём код?
{ "type": "test", "name": "task_queue_compaction", "binary": { "source": "build" }, "commands": [ { "route": "indexes/foobar/documents", "method": "POST", "body": { "inline": { "id": 123, "foo": "bar" } }, "expectedStatus": 202, "expectedResponse": { "enqueuedAt": "[timestamp]", "indexUid": "foobar", "status": "enqueued", "taskUid": "[taskUid]", "type": "documentAdditionOrUpdate" }, "synchronous": "WaitForTask" }, { "route": "tasks/compact", "method": "POST", "expectedStatus": 400, "expectedResponse": { "message": "Using the /tasks/compact route requires enabling the `task queue compaction route` experimental feature. See https://github.com/orgs/meilisearch/discussions/883", "code": "feature_not_enabled", "type": "invalid_request", "link": "https://docs.meilisearch.com/errors#feature_not_enabled" } }, { "route": "experimental-features", "method": "PATCH", "body": { "inline": { "taskQueueCompactionRoute": true } }, "expectedStatus": 200, "synchronous": "WaitForResponse" }, { "route": "tasks/compact", "method": "POST", "expectedStatus": 200, "expectedResponse": { "preSize": "[preSize]", "postSize": "[postSize]", "status": "succeeded", "actionRequired": "you must restart your instance" } }, { "route": "health", "method": "GET", "expectedStatus": 500, "expectedResponse": { "status": "mustRestart" } }, { "binary": { "source": "build" } }, { "route": "indexes/foobar/documents", "method": "POST", "body": { "inline": { "id": 456, "foo": "baz" } }, "expectedStatus": 202, "expectedResponse": { "enqueuedAt": "[timestamp]", "indexUid": "foobar", "status": "enqueued", "taskUid": "[taskUid]", "type": "documentAdditionOrUpdate" }, "synchronous": "WaitForTask" } ] }