semanser / codel

✨ Fully autonomous AI Agent that can perform complicated tasks and projects using terminal, browser, and editor.
https://discord.gg/uMaGSHNjzc
GNU Affero General Public License v3.0
2.02k stars 149 forks source link

Use an existing library for a worker pool #3

Open semanser opened 4 months ago

semanser commented 4 months ago

We should use some solution as the worker pool, instead of implementing our own (which is blocking on every operation).

https://github.com/semanser/codel/blob/b10a9daf6a436a3d1f9e3dba783a81801d51b959/backend/executor/queue.go#L26-L32

So far the closest option to what we need is pond - https://github.com/alitto/pond.

ralyodio commented 4 months ago

unfortunately i'm not a go guy so i can't help you there.