younifyd
Menu

Compact task queue

Compact task queue

POST/tasks/compact

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Compact task queue action (under Async task management).
  3. Fill in the fields below, then reference the result from later steps as {{compactTaskQueue.response.data}}.

Fields

baseUrlstring

The API host this action calls. Choose one, or pick Custom to enter your own.

One of/http://localhost:7700__custom__Default "/"

baseUrlCustomstring
bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{compactTaskQueue.response.data.<field>}}.

preSizestring

Size of the task queue database before compaction.

postSizestring

Size of the task queue database after compaction.

statusstring

The status of a task.

One ofenqueuedprocessingsucceededfailedcanceled

actionRequiredstring | null

Follow-up action required after a successful compaction.

errorMessagestring | null

Error message if compaction failed.

json
{
  "status": "processing",
  "preSize": "string",
  "postSize": "string",
  "actionRequired": "string",
  "errorMessage": "string"
}

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.

Was this page helpful?