{"id":36985409,"url":"https://github.com/schraf/jobsystem","last_synced_at":"2026-01-13T23:01:49.732Z","repository":{"id":327750694,"uuid":"1110610332","full_name":"schraf/jobsystem","owner":"schraf","description":"A concurrent job execution system for Go with dependency management","archived":true,"fork":false,"pushed_at":"2025-12-06T14:28:26.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-09T00:00:30.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/schraf.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":"2025-12-05T13:02:58.000Z","updated_at":"2025-12-06T14:40:32.000Z","dependencies_parsed_at":"2025-12-09T00:00:36.327Z","dependency_job_id":null,"html_url":"https://github.com/schraf/jobsystem","commit_stats":null,"previous_names":["schraf/jobsystem"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/schraf/jobsystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fjobsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fjobsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fjobsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fjobsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schraf","download_url":"https://codeload.github.com/schraf/jobsystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fjobsystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28399551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: 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":[],"created_at":"2026-01-13T23:01:49.198Z","updated_at":"2026-01-13T23:01:49.727Z","avatar_url":"https://github.com/schraf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jobsystem\n\nA concurrent job execution system for Go with dependency management.\n\n## Overview\n\n`jobsystem` provides a way to schedule and execute jobs concurrently while ensuring that jobs are executed only after their dependencies have completed successfully.\n\n## Installation\n\n```bash\ngo get github.com/schraf/jobsystem\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"github.com/schraf/jobsystem\"\n)\n\nfunc main() {\n    system := jobsystem.NewJobSystem()\n    ctx := context.Background()\n\n    // Create job IDs\n    job1 := jobsystem.NewJobId()\n    job2 := jobsystem.NewJobId()\n    job3 := jobsystem.NewJobId()\n\n    // Schedule jobs with dependencies\n    system.ScheduleJob(job1, nil, func(ctx context.Context) error {\n        fmt.Println(\"Job 1 executing\")\n        return nil\n    })\n\n    system.ScheduleJob(job2, []jobsystem.JobId{job1}, func(ctx context.Context) error {\n        fmt.Println(\"Job 2 executing (depends on job1)\")\n        return nil\n    })\n\n    system.ScheduleJob(job3, []jobsystem.JobId{job1, job2}, func(ctx context.Context) error {\n        fmt.Println(\"Job 3 executing (depends on job1 and job2)\")\n        return nil\n    })\n\n    // Run all jobs with a concurrency limit of 10\n    if err := system.Run(ctx, 10); err != nil {\n        fmt.Printf(\"Error: %v\\n\", err)\n    }\n}\n```\n\n## Features\n\n- Concurrent job execution with configurable concurrency limits\n- Dependency management\n- Type-safe job identifiers\n- Error handling with custom error types\n\n## Concurrency Limits\n\nThe `Run` method requires a `concurrencyLimit` parameter that specifies the maximum number of jobs that can run simultaneously. This limit must be greater than 0. The system uses a semaphore to enforce this limit, ensuring that resource usage is controlled even when many jobs are ready to execute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschraf%2Fjobsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschraf%2Fjobsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschraf%2Fjobsystem/lists"}