Get Background Tasks

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Returns list of background tasks currently scheduled or running in Artifactory. In HA, the nodeId is added to each task. Task can be in one of few states: scheduled, running, stopped, cancelled. Running task also shows the task start time.

Since: 4.4.0

Security: Requires a valid admin user

Usage: GET /api/tasks

Produces: application/json

Sample Output:

 {
 "tasks" : [ {
 "id" : "artifactory.UpdateIndicesJob#d7321feb-6fd9-4e27-8f0e-954137be855b",
 "type" : "org.artifactory.addon.gems.index.GemsVirtualIndexHandler$UpdateIndicesJob",
 "state" : "scheduled",
 "description" : "Gems Virtual Repositories Index Calculator",
 "nodeId" : "artifactory-primary"
 }, {
 "id" : "artifactory.VirtualCacheCleanupJob#82bb1514-ea34-4a71-940d-78a61887981e",
 "type" : "org.artifactory.repo.cleanup.VirtualCacheCleanupJob",
 "state" : "scheduled",
 "description" : "",
 "nodeId" : "artifactory-primary"
 }, {
 "id" : "artifactory.BinaryStoreGarbageCollectorJob#039664ac-990d-4a32-85e1-decd0b508142",
 "type" : "org.artifactory.storage.binstore.service.BinaryStoreGarbageCollectorJob",
 "state" : "running",
 "started" : "2015-05-15T15:39:37.566+02:00"
 "description" : "Binaries Garbage Collector",
 "nodeId" : "artifactory-primary"
 } ]
}