Skip to content

Commit

Permalink
Add task details to queue info in woodpecker-go (woodpecker-ci#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored and 6543 committed Sep 5, 2024
1 parent aa3c6c0 commit b650171
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion woodpecker-go/woodpecker/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit b650171

Please sign in to comment.