{"id":16479838,"url":"https://github.com/fredmaggiowski/gowq","last_synced_at":"2026-06-11T11:31:06.776Z","repository":{"id":54371244,"uuid":"340987355","full_name":"fredmaggiowski/gowq","owner":"fredmaggiowski","description":"A simple and straightforward workqueue manager in Go","archived":false,"fork":false,"pushed_at":"2026-05-04T15:03:01.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-04T17:07:13.456Z","etag":null,"topics":["concurrent-programming","threadpool","workqueue"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredmaggiowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-21T19:38:00.000Z","updated_at":"2026-05-04T15:03:04.000Z","dependencies_parsed_at":"2024-11-12T10:30:35.411Z","dependency_job_id":"f4da9d3e-8174-45ec-95a9-eb4a4c485a02","html_url":"https://github.com/fredmaggiowski/gowq","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fredmaggiowski/gowq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredmaggiowski%2Fgowq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredmaggiowski%2Fgowq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredmaggiowski%2Fgowq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredmaggiowski%2Fgowq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredmaggiowski","download_url":"https://codeload.github.com/fredmaggiowski/gowq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredmaggiowski%2Fgowq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34197393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concurrent-programming","threadpool","workqueue"],"created_at":"2024-10-11T12:53:03.194Z","updated_at":"2026-06-11T11:31:06.754Z","avatar_url":"https://github.com/fredmaggiowski.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goWQ\n\n[![Build][build-svg]][build-link]\n[![Go Report Card][report-card-svg]][report-card-link]\n\nA simple work queue manager to schedule jobs and then execute them on a defined pool of goroutines.\n\nIt can be used in two modes:\n\n- *static*: allows to create a job queue and then run it waiting for all jobs to complete;\n- *dynamic*: allows to run a job scheduler and then enqueue new jobs while the scheduler runs.\n\n## Examples\n\n### Static Queue Usage\n\n```go\nwq := New[MyResult](2)\n\nwq.Push(func(ctx context.Context) (MyResult, error) {\n    // do something...\n    return MyResult{}, nil\n})\nresults, errors := wq.RunAll(context.TODO())\n```\n\n### Dynamic Queue Manager\n\n```go\nwq := New[MyResult](2)\n\ngo func(ctx context.Context) {\n    wq.Start(ctx)\n}(context.TODO())\n\nwq.Schedule(func(ctx context.Context) (MyResult, error) {\n    // do something...\n    return nil\n})\n\n// Wait until all jobs have been completed.\n_ := wq.Shutdown()\n```\n\n[build-svg]: https://github.com/fredmaggiowski/gowq/actions/workflows/go.yml/badge.svg\n[build-link]: https://github.com/fredmaggiowski/gowq/actions/workflows/go.yml\n[report-card-svg]: https://goreportcard.com/badge/github.com/fredmaggiowski/gowq\n[report-card-link]: https://goreportcard.com/report/github.com/fredmaggiowski/gowq\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredmaggiowski%2Fgowq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredmaggiowski%2Fgowq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredmaggiowski%2Fgowq/lists"}