You're viewing an archived version of our docs. Check out our current documentation →

Check task status

Checks the status of a given task.

Usage

Required ACL: editSettings, settings, addObject, deleteObject, deleteIndex
1
2
3
4
5
6
7
8
9
10
from algoliasearch.composition.client import CompositionClientSync
from json import loads

# In an asynchronous context, you can use CompositionClient instead, which exposes the exact same methods.
client = CompositionClientSync("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")

response = client.get_task(
    composition_id="foo",
    task_id=42,
)