{"id":38354706,"url":"https://github.com/plexsysio/taskmanager","last_synced_at":"2026-01-17T03:13:44.323Z","repository":{"id":45333711,"uuid":"387560087","full_name":"plexsysio/taskmanager","owner":"plexsysio","description":"Async Task manager","archived":false,"fork":false,"pushed_at":"2021-12-20T12:37:47.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-27T22:28:42.432Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plexsysio.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}},"created_at":"2021-07-19T18:32:07.000Z","updated_at":"2021-12-20T12:37:50.000Z","dependencies_parsed_at":"2022-09-15T18:41:16.423Z","dependency_job_id":null,"html_url":"https://github.com/plexsysio/taskmanager","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/plexsysio/taskmanager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plexsysio%2Ftaskmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plexsysio%2Ftaskmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plexsysio%2Ftaskmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plexsysio%2Ftaskmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plexsysio","download_url":"https://codeload.github.com/plexsysio/taskmanager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plexsysio%2Ftaskmanager/sbom","scorecard":{"id":737756,"data":{"date":"2025-08-11","repo":{"name":"github.com/plexsysio/taskmanager","commit":"de5ebdd49ae25ebe5ebe3966a17826b46e021fa3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 1/9 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/plexsysio/taskmanager/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/plexsysio/taskmanager/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/plexsysio/taskmanager/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/plexsysio/taskmanager/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/plexsysio/taskmanager/go.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T16:24:24.952Z","repository_id":45333711,"created_at":"2025-08-22T16:24:24.952Z","updated_at":"2025-08-22T16:24:24.952Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"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":[],"created_at":"2026-01-17T03:13:44.205Z","updated_at":"2026-01-17T03:13:44.309Z","avatar_url":"https://github.com/plexsysio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# taskmanager [![Go](https://github.com/plexsysio/taskmanager/workflows/Go/badge.svg)](https://github.com/plexsysio/taskmanager/actions) [![Go Reference](https://pkg.go.dev/badge/github.com/plexsysio/taskmanager.svg)](https://pkg.go.dev/github.com/plexsysio/taskmanager) [![Coverage Status](https://coveralls.io/repos/github/plexsysio/taskmanager/badge.svg?branch=main)](https://coveralls.io/github/plexsysio/taskmanager?branch=main)\n\nAsync task manager. Tasks can easily be customized and executed asynchronously on\nthe next available worker.\n\nThe manager keeps workers ready to multiplex tasks. The maximum no. of workers can\nbe configured.\n\nThis package was mainly created to abstract all async functionality from the app. It\nprovides a consistent context interface to manage routine lifecycle from a single\nplace.\n\n## Install\n`taskmanager` works like a regular Go module:\n\n```\n\u003e go get github.com/plexsysio/taskmanager\n```\n\n## Usage\n```\nimport \"github.com/plexsysio/taskmanager\"\n\ntype exampleTask struct {}\n\nfunc (e *exampleTask) Name() string {\n   return \"exampleTask\"\n}\n\nfunc (e *exampleTask) Execute(ctx context.Context) error {\n   for {\n      select {\n      case \u003c-ctx.Done():\n         // taskmanager stopped\n         return nil\n      default:\n        // Do work. For long running tasks use ctx or move to next iteration\n      }\n   }\n}\n\nfunc main() {\n\n   tm := taskmanager.New(1, 100, time.Second*15)\n   t := \u0026exampleTask{}\n\n   sched, err := tm.Go(t)\n   if err != nil {\n      fmt.Println(err)\n      return\n   }\n\n   // Task scheduled\n   \u003c-sched\n   \n```\nClosures can also be scheduled\n```\n   fSched, err := tm.GoFunc(func(ctx context.Context) error {\n      for {\n         select {\n         case \u003c-ctx.Done():\n            //taskmanager stopped\n            return nil\n         default:\n            // Do work\n         }\n      }\n   })\n   if err != nil {\n      fmt.Println(err)\n      return\n   }\n\n   // Stop will wait for all routines to stop. Context can be passed here to\n   // ensure timeout in Stop\n   ctx, _ := context.WithTimeout(time.Second)\n   err = tm.Stop(ctx)\n   if err != nil {\n      fmt.Printf(\"failed stopping %s\\n\", err.Error())\n   }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplexsysio%2Ftaskmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplexsysio%2Ftaskmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplexsysio%2Ftaskmanager/lists"}