Download page Restarting tickets in the indexing queue.
Restarting tickets in the indexing queue
At times, Awesome Graphs for Bitbucket users may face indexing issues that could necessitate a restart of the indexing process for repositories with FAILED, INVALID or TIMEOUT statuses. Although there are multiple ways to restart indexing and resolve this issue (also described in our FAQ), such methods may not always be convenient.
To address this problem in a faster and more efficient manner, you can use the REST API. Below on the page, you'll findthe details about this option.
Overview
This REST API resource is available beginning with version 6.1.0 of the app. You can access the REST API reference documentation at the People page by clicking on Export → REST API or via the link: <bitbucket-host>/plugins/servlet/graphs-api. If it's not available to you, then you'll need to update the app.
Via this REST API, you'll be able to restart the tickets in the indexing queue according to the passed ticket statuses.
REST API for managing indexing queue is accessible to Bitbucket users with ADMIN and SYS_ADMIN permission levels.
Restart tickets in the indexing queue
POST /rest/awesome-graphs-api/latest/admin/indexing-queue/restart
Restarts tickets in the indexing queue according to the passed ticket statuses. Returns the number of restarted tickets.
Request Body Schema
Body
Value
Description
statuses
array of strings
Only the tickets with the specified statuses will be restarted. Defaults to FAILED, INVALID.