mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Show human readable information in queue info (#5516)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
@@ -1777,7 +1777,7 @@ const docTemplate = `{
|
||||
},
|
||||
"/queue/info": {
|
||||
"get": {
|
||||
"description": "TODO: link the InfoT response object - this is blocked, until the ` + "`" + `swaggo/swag` + "`" + ` tool dependency is v1.18.12 or newer",
|
||||
"description": "Returns pipeline queue information with agent details",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1799,10 +1799,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
"$ref": "#/definitions/QueueInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5019,6 +5016,49 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"QueueInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"paused": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"pending": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/model.QueueTask"
|
||||
}
|
||||
},
|
||||
"running": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/model.QueueTask"
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pending_count": {
|
||||
"type": "integer"
|
||||
},
|
||||
"running_count": {
|
||||
"type": "integer"
|
||||
},
|
||||
"waiting_on_deps_count": {
|
||||
"type": "integer"
|
||||
},
|
||||
"worker_count": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"waiting_on_deps": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/model.QueueTask"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Registry": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5453,6 +5493,18 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"pid": {
|
||||
"type": "integer"
|
||||
},
|
||||
"pipeline_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"repo_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"run_on": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -5803,6 +5855,59 @@ const docTemplate = `{
|
||||
"ForgeTypeAddon"
|
||||
]
|
||||
},
|
||||
"model.QueueTask": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"agent_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"agent_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"dep_status": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/StatusValue"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"pid": {
|
||||
"type": "integer"
|
||||
},
|
||||
"pipeline_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"pipeline_number": {
|
||||
"type": "integer"
|
||||
},
|
||||
"repo_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"run_on": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"model.TrustedConfiguration": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user