public function TaskManagerInterface::executeAllTasks in Search API 8
Executes all (or some) pending tasks.
Parameters
array $conditions: (optional) An array of conditions to be matched for the tasks, with property names mapped to the value (or values, for multiple possibilities) that the property should have.
int|null $limit: (optional) If given, only this number of tasks will be executed.
Return value
bool TRUE if all tasks matching the conditions have been executed, FALSE if $limit was given and lower than the total count of pending tasks matching the conditions.
Throws
\Drupal\search_api\SearchApiException Thrown if any error occurred while processing a task.
1 method overrides TaskManagerInterface::executeAllTasks()
- TaskManager::executeAllTasks in src/
Task/ TaskManager.php - Executes all (or some) pending tasks.
File
- src/
Task/ TaskManagerInterface.php, line 124
Class
- TaskManagerInterface
- Defines the interface of the Search API task manager service.
Namespace
Drupal\search_api\TaskCode
public function executeAllTasks(array $conditions = [], $limit = NULL);