Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an existing library for a worker pool #3

Open
semanser opened this issue Mar 23, 2024 · 1 comment
Open

Use an existing library for a worker pool #3

semanser opened this issue Mar 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@semanser
Copy link
Owner

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

func ProcessQueue(db *gorm.DB) {
log.Println("Starting tasks processor")
go func() {
for {
log.Println("Waiting for a task")
task := <-queue

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

@ralyodio
Copy link

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

@semanser semanser added the enhancement New feature or request label Mar 24, 2024
@semanser semanser modified the milestones: v.0.1, v.0.2 Mar 28, 2024
@semanser semanser removed this from the v.0.2 milestone Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants