From e51f804ad6b8bb4f926603f96fdaf51fcd8c9d2d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 22 Apr 2024 10:54:57 +0200 Subject: [PATCH] Add task details to queue info in woodpecker-go (#3636) --- woodpecker-go/woodpecker/types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/woodpecker-go/woodpecker/types.go b/woodpecker-go/woodpecker/types.go index 5746c4e4a..cf84e01b9 100644 --- a/woodpecker-go/woodpecker/types.go +++ b/woodpecker-go/woodpecker/types.go @@ -183,7 +183,10 @@ type ( // Info provides queue stats. Info struct { - Stats struct { + Pending []Task `json:"pending"` + WaitingOnDeps []Task `json:"waiting_on_deps"` + Running []Task `json:"running"` + Stats struct { Workers int `json:"worker_count"` Pending int `json:"pending_count"` WaitingOnDeps int `json:"waiting_on_deps_count"`