Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After updating to search_api-8.x-1.0-beta-4 I have pending tasks that cannot be executed. On the status report page, a warning is displayed, but not the "Execute now" link. I cannot call the search_api.execute_tasks route because the _search_api_tasks requirement fails. Drupal\search_api\Task\TaskManager::getTasksCount() is called without conditions from the requirements check and with these conditions from the access check:
Array
(
[type] => Array
(
[0] => addIndex
[1] => updateIndex
[2] => removeIndex
[3] => deleteItems
[4] => deleteAllIndexItems
)
)
The value in the search_api_task.type column is "search_api.entity_datasource.trackItemsInserted".
Comment | File | Size | Author |
---|---|---|---|
#2 | 2841550-2--execute_tasks_access_check.patch | 2.29 KB | drunken monkey |
|
Comments
Comment #2
drunken monkeyOh, you're right, thanks for reporting!
Apparently, while creating this general tasks system in #2574611: Unify our two task systems, we forgot to update that access check to use the new, general tasks manager instead of the server-specific one.
The attached patch should fix this. Please test! (Needs a cache-clear.)
Comment #3
morenstratThank you! Applied the patch. The link is now displayed on the status report page and I can access the route and execute the pending tasks.
Comment #5
drunken monkeyGood to hear, thanks a lot for testing and reporting back!
Committed.