AlgoliaSearch\Index::getTaskStatus PHP Method

getTaskStatus() public method

All server task are asynchronous and you can check with this method that the task is published or not.
public getTaskStatus ( string $taskID ) : mixed
$taskID string the id of the task returned by server
return mixed
    public function getTaskStatus($taskID)
    {
        return $this->client->request($this->context, 'GET', '/1/indexes/' . $this->urlIndexName . '/task/' . $taskID, null, null, $this->context->readHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
    }