{"id":28225805,"url":"https://github.com/firminochangani/recurrent","last_synced_at":"2025-06-13T00:31:33.570Z","repository":{"id":218438460,"uuid":"746035966","full_name":"firminochangani/recurrent","owner":"firminochangani","description":"A Go package to run tasks recurrently.","archived":false,"fork":false,"pushed_at":"2024-03-04T02:16:13.000Z","size":20,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-18T11:09:40.249Z","etag":null,"topics":["go","golang","golang-library","golang-package","recurring-jobs","recurring-tasks"],"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/firminochangani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-01-20T21:50:42.000Z","updated_at":"2024-03-29T12:12:27.000Z","dependencies_parsed_at":"2024-06-21T00:33:11.656Z","dependency_job_id":"8590cb3a-e445-469a-b55c-0e31627a931c","html_url":"https://github.com/firminochangani/recurrent","commit_stats":null,"previous_names":["flowck/recurrent","firminochangani/recurrent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firminochangani/recurrent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firminochangani%2Frecurrent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firminochangani%2Frecurrent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firminochangani%2Frecurrent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firminochangani%2Frecurrent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firminochangani","download_url":"https://codeload.github.com/firminochangani/recurrent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firminochangani%2Frecurrent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259554918,"owners_count":22875896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","golang","golang-library","golang-package","recurring-jobs","recurring-tasks"],"created_at":"2025-05-18T11:09:39.546Z","updated_at":"2025-06-13T00:31:33.561Z","avatar_url":"https://github.com/firminochangani.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# recurrent\n\n[![main](https://github.com/flowck/schedule/actions/workflows/main.yml/badge.svg)](https://github.com/flowck/schedule/actions/workflows/main.yml)\n\nA Go package to run tasks recurrently. - Inspired by the Python lib [schedule](https://github.com/dbader/schedule) \n\n- [x] Parallel execution of jobs\n- [x] Cancellation of running jobs via context \n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/flowck/recurrent/recurrent\"\n)\n\nfunc main() {\n\tctx, cancel := context.WithTimeout(context.Background(), time.Second*5)\n\tdefer cancel()\n\n\ts := recurrent.New()\n\n\ts.Every(time.Second * 1).Do(func(ctx context.Context) {\n\t\tfmt.Println(\"---\u003e\", time.Now())\n\t})\n\n\ts.Every(time.Second * 2).Do(func(ctx context.Context) {\n\t\tfmt.Println(\"---\u003e\", time.Now())\n\t})\n\n\ts.Run(ctx)\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirminochangani%2Frecurrent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirminochangani%2Frecurrent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirminochangani%2Frecurrent/lists"}