Task Management
Solr allows users to control their running tasks by monitoring them, specifying tasks as cancellation enabled and allowing cancellation of the same.
This is achieved using the task management interface. Currently, this is supported for queries.
Types of Operations
Task management interface supports the following types of operations:
-
List all currently running cancellable tasks.
-
Cancel a specific task.
-
Query the status of a specific task.
Listing All Active Cancellable Tasks
To list all the active cancellable tasks currently running, please use the following syntax:
http://localhost:8983/solr/tasks/list
Sample Response
{responseHeader={status=0, QTime=11370}, taskList={0=q=%3A&canCancel=true&queryUUID=0&_stateVer_=collection1%3A4&wt=javabin&version=2, 5=q=%3A&canCancel=true&queryUUID=5&_stateVer_=collection1%3A4&wt=javabin&version=2, 7=q=%3A&canCancel=true&queryUUID=7&_stateVer_=collection1%3A4&wt=javabin&version=2}
Cancelling An Active Cancellable Task
To cancel an active task, please use the following syntax:
http://localhost:8983/solr/tasks/cancel?queryUUID=foobar