{"id":3494848,"name":"github.com/gogs/cron","ecosystem":"go","description":"Package cron implements a cron spec parser and job runner.\n\nCallers may register Funcs to be invoked on a given schedule.  Cron will run\nthem in their own goroutines.\n\nA cron expression represents a set of times, using 6 space-separated fields.\n\nNote: Month and Day-of-week field values are case insensitive.  \"SUN\", \"Sun\",\nand \"sun\" are equally accepted.\n\nAsterisk ( * )\n\nThe asterisk indicates that the cron expression will match for all values of the\nfield; e.g., using an asterisk in the 5th field (month) would indicate every\nmonth.\n\nSlash ( / )\n\nSlashes are used to describe increments of ranges. For example 3-59/15 in the\n1st field (minutes) would indicate the 3rd minute of the hour and every 15\nminutes thereafter. The form \"*\\/...\" is equivalent to the form \"first-last/...\",\nthat is, an increment over the largest possible range of the field.  The form\n\"N/...\" is accepted as meaning \"N-MAX/...\", that is, starting at N, use the\nincrement until the end of that specific range.  It does not wrap around.\n\nComma ( , )\n\nCommas are used to separate items of a list. For example, using \"MON,WED,FRI\" in\nthe 5th field (day of week) would mean Mondays, Wednesdays and Fridays.\n\nHyphen ( - )\n\nHyphens are used to define ranges. For example, 9-17 would indicate every\nhour between 9am and 5pm inclusive.\n\nQuestion mark ( ? )\n\nQuestion mark may be used instead of '*' for leaving either day-of-month or\nday-of-week blank.\n\nYou may use one of several pre-defined schedules in place of a cron expression.\n\nYou may also schedule a job to execute at fixed intervals, starting at the time it's added\nor cron is run. This is supported by formatting the cron spec like this:\n\nwhere \"duration\" is a string accepted by time.ParseDuration\n(http://golang.org/pkg/time/#ParseDuration).\n\nFor example, \"@every 1h30m10s\" would indicate a schedule that activates immediately,\nand then every 1 hour, 30 minutes, 10 seconds.\n\nNote: The interval does not take the job runtime into account.  For example,\nif a job takes 3 minutes to run, and it is scheduled to run every 5 minutes,\nit will have only 2 minutes of idle time between each run.\n\nAll interpretation and scheduling is done in the machine's local time zone (as\nprovided by the Go time package (http://www.golang.org/pkg/time).\n\nBe aware that jobs scheduled during daylight-savings leap-ahead transitions will\nnot be run!\n\nSince the Cron service runs concurrently with the calling code, some amount of\ncare must be taken to ensure proper synchronization.\n\nAll cron methods are designed to be correctly synchronized as long as the caller\nensures that invocations have a clear happens-before ordering between them.\n\nCron entries are stored in an array, sorted by their next activation time.  Cron\nsleeps until the next job is due to be run.\n\nUpon waking:","homepage":"https://github.com/gogs/cron","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/gogs/cron","keywords_array":[],"namespace":"github.com/gogs","versions_count":1,"first_release_published_at":"2017-11-20T03:29:16.000Z","latest_release_published_at":"2017-11-20T03:29:16.000Z","latest_release_number":"v0.0.0-20171120032916-9f6c956d3e14","last_synced_at":"2026-06-05T11:16:38.186Z","created_at":"2022-04-10T19:29:47.321Z","updated_at":"2026-06-05T11:16:38.186Z","registry_url":"https://pkg.go.dev/github.com/gogs/cron","install_command":"go get github.com/gogs/cron","documentation_url":"https://pkg.go.dev/github.com/gogs/cron#section-documentation","metadata":{},"repo_metadata":{"uuid":"52174549","full_name":"gogs/cron","owner":"gogs","description":"a cron library for go","archived":false,"fork":true,"pushed_at":"2020-10-28T15:56:49.000Z","size":96,"stargazers_count":9,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-03-17T12:04:24.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"robfig/cron","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"logo_url":null,"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":"2016-02-20T20:41:34.000Z","updated_at":"2022-02-12T22:20:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gogs/cron","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogs%2Fcron","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogs%2Fcron/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogs%2Fcron/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gogs","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"},"owner_record":{"login":"gogs","name":"Gogs","uuid":"6656686","kind":"organization","description":"A painless self-hosted Git service","email":null,"website":"https://gogs.io","location":"Wildest Dream","twitter":"GogsHQ","company":null,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=4","repositories_count":16,"last_synced_at":"2023-02-19T18:07:31.745Z","metadata":{"has_sponsors_listing":false},"owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gogs"},"tags":[{"name":"v1","sha":"b024fc5ea0e34bc3f83d9941c8d60b0622bfaca4","kind":"commit","published_at":"2014-01-19T01:50:47.000Z","download_url":"https://codeload.github.com/gogs/cron/tar.gz/v1","html_url":"https://github.com/gogs/cron/releases/tag/v1"}]},"repo_metadata_updated_at":"2023-03-21T18:38:28.166Z","dependent_packages_count":54,"downloads":null,"downloads_period":null,"dependent_repos_count":202,"rankings":{"downloads":null,"dependent_repos_count":0.4498046303120866,"dependent_packages_count":0.7472511939258706,"stargazers_count":10.25564653736256,"forks_count":6.645699342709732,"docker_downloads_count":0.17265228234201305,"average":3.6542107973304523},"purl":"pkg:golang/github.com/gogs/cron","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/gogs/cron","docker_dependents_count":54,"docker_downloads_count":429083072,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/gogs/cron","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/gogs/cron/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-29T00:12:13.695Z","issues_count":0,"pull_requests_count":1,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":1,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":1.0,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgogs%2Fcron/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgogs%2Fcron/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgogs%2Fcron/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgogs%2Fcron/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgogs%2Fcron/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgogs%2Fcron/codemeta","maintainers":[]}