{"id":20629882,"url":"https://github.com/lbrulet/go-routine","last_synced_at":"2026-05-20T16:41:03.722Z","repository":{"id":128440369,"uuid":"250155328","full_name":"lbrulet/go-routine","owner":"lbrulet","description":"Go worker pool to handle jobs","archived":false,"fork":false,"pushed_at":"2020-03-26T11:37:04.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T18:53:28.751Z","etag":null,"topics":["channel","go","golang","worker-pool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lbrulet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-03-26T03:49:35.000Z","updated_at":"2020-03-26T11:37:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a7f7794-2dff-474c-bfe0-6ddcb5e7d3b2","html_url":"https://github.com/lbrulet/go-routine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lbrulet/go-routine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbrulet%2Fgo-routine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbrulet%2Fgo-routine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbrulet%2Fgo-routine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbrulet%2Fgo-routine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbrulet","download_url":"https://codeload.github.com/lbrulet/go-routine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbrulet%2Fgo-routine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33267140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T15:12:43.734Z","status":"ssl_error","status_checked_at":"2026-05-20T15:12:42.300Z","response_time":356,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["channel","go","golang","worker-pool"],"created_at":"2024-11-16T14:06:20.033Z","updated_at":"2026-05-20T16:41:03.684Z","avatar_url":"https://github.com/lbrulet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go routine\n\nGo routine is a program to handle a pool of workers with go channel.\n\n\n## Usage\n\nStart the pool with a pool of 10 workers and 10 jobs that will be created.\nHere is the output.\n```bash\ngo run cmd/main.go -workers 10 -jobs 10\n020/03/26 15:53:07 [INFO] starting HTTP server on port :9009\n2020/03/26 15:53:07 [INFO] starting 10 jobs\n2020/03/26 15:53:07 [INFO] starting 10 workers\n2020/03/26 15:53:07 [workerID:2][email_job] Processed job in 0.023 seconds\n2020/03/26 15:53:07 [workerID:3][email_job] Processed job in 0.020 seconds\n2020/03/26 15:53:07 [workerID:4][email_job] Processed job in 0.021 seconds\n2020/03/26 15:53:07 [workerID:5][email_job] Processed job in 0.021 seconds\n2020/03/26 15:53:07 [workerID:9][notification_job] Processed job in 0.062 seconds\n2020/03/26 15:53:07 [workerID:7][email_job] Processed job in 0.020 seconds\n2020/03/26 15:53:07 [workerID:0][notification_job] Processed job in 0.062 seconds\n2020/03/26 15:53:07 [workerID:1][notification_job] Processed job in 0.061 seconds\n2020/03/26 15:53:07 [workerID:6][notification_job] Processed job in 0.062 seconds\n2020/03/26 15:53:07 [workerID:8][notification_job] Processed job in 0.062 seconds\n```\n\nYou can also push a random job to the pool with an endpoint\n```bash\ncurl localhost:9009/new-job\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbrulet%2Fgo-routine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbrulet%2Fgo-routine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbrulet%2Fgo-routine/lists"}