buildkite / cli

A command line interface for Buildkite.
MIT License
166 stars 44 forks source link

include go routines #304

Closed PriyaSudip closed 2 months ago

PriyaSudip commented 2 months ago

Adding go routines to run queue agent querying in parallel.

With agents:

image

Without queue:

image
PriyaSudip commented 2 months ago

This looks okay but its all done manually. This page https://gobyexample.com/waitgroups links out to the errgroup package which will make this much simpler: https://pkg.go.dev/golang.org/x/sync/errgroup

If you search the codebase, you'll see an example of it already in use as well I think

Thanks @jradtilbrook as discussed I have made changes to include err group and instead of channel added array of queues and go routines based on the queue index