{"id":34188076,"url":"https://github.com/keepchen/schedule","last_synced_at":"2026-03-10T08:04:07.574Z","repository":{"id":246773692,"uuid":"821268942","full_name":"keepchen/schedule","owner":"keepchen","description":"A distributed scheduled task tool written in Go.","archived":false,"fork":false,"pushed_at":"2024-07-16T03:04:15.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T14:56:33.627Z","etag":null,"topics":["cronjob","crontab-task","schedule"],"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/keepchen.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}},"created_at":"2024-06-28T07:07:15.000Z","updated_at":"2024-09-13T06:56:07.000Z","dependencies_parsed_at":"2024-07-10T15:17:58.135Z","dependency_job_id":null,"html_url":"https://github.com/keepchen/schedule","commit_stats":null,"previous_names":["keepchen/schedule"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/keepchen/schedule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keepchen%2Fschedule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keepchen%2Fschedule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keepchen%2Fschedule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keepchen%2Fschedule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keepchen","download_url":"https://codeload.github.com/keepchen/schedule/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keepchen%2Fschedule/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30327574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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":["cronjob","crontab-task","schedule"],"created_at":"2025-12-15T15:26:01.468Z","updated_at":"2026-03-10T08:04:07.566Z","avatar_url":"https://github.com/keepchen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schedule  \n[![Go](https://github.com/keepchen/schedule/actions/workflows/go.yml/badge.svg)](https://github.com/keepchen/schedule/actions/workflows/go.yml)  [![CodeQL](https://github.com/keepchen/schedule/actions/workflows/codeql.yml/badge.svg)](https://github.com/keepchen/schedule/actions/workflows/codeql.yml)  [![Go Report Card](https://goreportcard.com/badge/github.com/keepchen/schedule)](https://goreportcard.com/report/github.com/keepchen/schedule)  \nA distributed scheduled task tool written in Go. It was incubated and evolved from the [go-sail](https://github.com/keepchen/go-sail) framework.  \n\n### Requirement  \n```text\ngo version \u003e= 1.19\n```\n\n### Installation  \n```shell\ngo get -u github.com/keepchen/schedule\n```  \n\n### Features  \n- [x] Interval task  \n- [x] Once time task  \n- [x] Linux Crontab Style task  \n- [x] Cancelable  \n- [x] Race detection  \n- [x] Manual call\n\n### Examples  \n#### Interval  \n```go\nschedule.NewJob(\"say hello\").EveryMinute()\n```  \n#### Once time  \n```go\nschedule.NewJob(\"check in\").RunOnceTimeAfter(time.Second)\n```  \n#### Linux Crontab Style  \n```go\nschedule.NewJob(\"good morning\").RunAt(schedule.EveryDayOfEightAMClock)\n```  \n#### Cancelable\n```go\ncancel := schedule.NewJob(\"say hello\").EveryMinute()\n\ntime.AfterFunc(time.Minute*3, cancel)\n```  \n#### Race detection  \n\u003e Note: You must set redis provider before use.\n```go  \n// set redis provider\nschedule.SetRedisProviderStandalone(...)\n// or\nschedule.SetRedisProviderClient(...)\n\nschedule.NewJob(\"say hello\").WithoutOverlapping().EveryMinute()\n```  \n#### Manual call\n```go\nschedule.Call(\"say hello\", false)\n\nschedule.MustCall(\"task not exist will be panic\", true)\n```  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeepchen%2Fschedule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeepchen%2Fschedule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeepchen%2Fschedule/lists"}