An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/robfig/cron/v3

Package cron implements a cron spec parser and job runner. To download the specific tagged release, run: Import it in your program as: It requires Go 1.11 or later due to usage of Go Modules. Callers may register Funcs to be invoked on a given schedule. Cron will run them in their own goroutines. A cron expression represents a set of times, using 5 space-separated fields. Month and Day-of-week field values are case insensitive. "SUN", "Sun", and "sun" are equally accepted. The specific interpretation of the format is based on the Cron Wikipedia page: https://en.wikipedia.org/wiki/Cron Alternative Cron expression formats support other fields like seconds. You can implement that by creating a custom Parser as follows. Since adding Seconds is the most common modification to the standard cron spec, cron provides a builtin function to do that, which is equivalent to the custom parser you saw earlier, except that its seconds field is REQUIRED: That emulates Quartz, the most popular alternative Cron schedule format: http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html Asterisk ( * ) The asterisk indicates that the cron expression will match for all values of the field; e.g., using an asterisk in the 5th field (month) would indicate every month. Slash ( / ) Slashes are used to describe increments of ranges. For example 3-59/15 in the 1st field (minutes) would indicate the 3rd minute of the hour and every 15 minutes thereafter. The form "*\/..." is equivalent to the form "first-last/...", that is, an increment over the largest possible range of the field. The form "N/..." is accepted as meaning "N-MAX/...", that is, starting at N, use the increment until the end of that specific range. It does not wrap around. Comma ( , ) Commas are used to separate items of a list. For example, using "MON,WED,FRI" in the 5th field (day of week) would mean Mondays, Wednesdays and Fridays. Hyphen ( - ) Hyphens are used to define ranges. For example, 9-17 would indicate every hour between 9am and 5pm inclusive. Question mark ( ? ) Question mark may be used instead of '*' for leaving either day-of-month or day-of-week blank. You may use one of several pre-defined schedules in place of a cron expression. You may also schedule a job to execute at fixed intervals, starting at the time it's added or cron is run. This is supported by formatting the cron spec like this: where "duration" is a string accepted by time.ParseDuration (http://golang.org/pkg/time/#ParseDuration). For example, "@every 1h30m10s" would indicate a schedule that activates after 1 hour, 30 minutes, 10 seconds, and then every interval after that. Note: The interval does not take the job runtime into account. For example, if a job takes 3 minutes to run, and it is scheduled to run every 5 minutes, it will have only 2 minutes of idle time between each run. By default, all interpretation and scheduling is done in the machine's local time zone (time.Local). You can specify a different time zone on construction: Individual cron schedules may also override the time zone they are to be interpreted in by providing an additional space-separated field at the beginning of the cron spec, of the form "CRON_TZ=Asia/Tokyo". For example: The prefix "TZ=(TIME ZONE)" is also supported for legacy compatibility. Be aware that jobs scheduled during daylight-savings leap-ahead transitions will not be run! A Cron runner may be configured with a chain of job wrappers to add cross-cutting functionality to all submitted jobs. For example, they may be used to achieve the following effects: Install wrappers for all jobs added to a cron using the `cron.WithChain` option: Install wrappers for individual jobs by explicitly wrapping them: Since the Cron service runs concurrently with the calling code, some amount of care must be taken to ensure proper synchronization. All cron methods are designed to be correctly synchronized as long as the caller ensures that invocations have a clear happens-before ordering between them. Cron defines a Logger interface that is a subset of the one defined in github.com/go-logr/logr. It has two logging levels (Info and Error), and parameters are key/value pairs. This makes it possible for cron logging to plug into structured logging systems. An adapter, [Verbose]PrintfLogger, is provided to wrap the standard library *log.Logger. For additional insight into Cron operations, verbose logging may be activated which will record job runs, scheduling decisions, and added or removed jobs. Activate it with a one-off logger as follows: Cron entries are stored in an array, sorted by their next activation time. Cron sleeps until the next job is due to be run. Upon waking:
3 versions
Latest release: over 5 years ago
4,986 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/robfig/cron/v3

View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/robfig%2Fcron

Dependent Repos 9,245

admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platform

Size: 29.4 MB - Last synced: 7 days ago - Pushed: almost 2 years ago

aberja/argo Fork of argoproj/argo-workflows
Argo Workflows: Get stuff done with Kubernetes.

Size: 66.8 MB - Last synced: 11 months ago - Pushed: about 2 years ago

ryanlycch/go-zero-looklook Fork of Mikaelemmmm/go-zero-looklook
🔥基于go-zero(go zero) 微服务全技术栈开发最佳实践项目。Develop best practice projects based on the full technology stack of go zero (go zero) microservices.

Size: 101 MB - Last synced: 4 months ago - Pushed: 4 months ago

rancher-max/rancher Fork of rancher/rancher
Complete container management platform

Size: 140 MB - Last synced: about 1 month ago - Pushed: about 1 month ago

rxrddd/austin-v2
基于kratos 的聚合消息推送平台

Size: 1.94 MB - Last synced: 10 months ago - Pushed: about 2 years ago

auliawiguna/goshaka-starter
REST API boilerplate using Go, Fiber Framework, JWT, GORM, Swagger, Rate Limiter

Size: 9.17 MB - Last synced: 26 days ago - Pushed: 6 months ago

elisasre/kops-autoscaler-openstack
Provide AutoScalingGroup capability to OpenStack Kops

Size: 17.6 MB - Last synced: 19 days ago - Pushed: 19 days ago

soitun/dokku Fork of dokku/dokku
Docker powered mini-Heroku in around 100 lines of Bash

Size: 18.9 MB - Last synced: 5 days ago - Pushed: 5 days ago

akram/origin Fork of openshift/origin
Enterprise Kubernetes for Developers

Size: 1.18 GB - Last synced: 6 months ago - Pushed: 6 months ago

sknot-rh/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift

Size: 442 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

tts-tblock/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift

Size: 449 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

douyu/jupiter-examples
Examples of Jupiter.

Size: 57.6 MB - Last synced: 20 days ago - Pushed: over 1 year ago

kubesphere/notification-manager
K8s native notification management with multi-tenancy support

Size: 2.38 MB - Last synced: 6 days ago - Pushed: 6 days ago

Paperspace/csi-driver-nfs Fork of kubernetes-csi/csi-driver-nfs 📦
This driver allows Kubernetes to access NFS server on Linux node.

Size: 21.6 MB - Last synced: about 1 year ago - Pushed: almost 3 years ago

aaronstillwell/dokku Fork of dokku/dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications

Size: 11.8 MB - Last synced: about 1 month ago - Pushed: about 2 years ago

suryatmodulus/dokku Fork of dokku/dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications

Size: 12 MB - Last synced: about 1 year ago - Pushed: about 2 years ago

truenas/k3s Fork of k3s-io/k3s
Lightweight Kubernetes

Size: 546 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

asmigala/camel-k Fork of apache/camel-k
Apache Camel K is a lightweight integration platform, born on Kubernetes, with serverless superpowers

Size: 64.1 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

no-src/gofs
A cross-platform real-time file synchronization tool out of the box based on Golang

Size: 1.33 MB - Last synced: 6 months ago - Pushed: 6 months ago

alrs/magma Fork of magma/magma
Platform for building access networks and modular network services

Size: 199 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

Tiamat-Tech/dokku Fork of dokku/dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications

Size: 19.6 MB - Last synced: 7 days ago - Pushed: 7 days ago

sanekkurt/telegraf Fork of influxdata/telegraf
The plugin-driven server agent for collecting & reporting metrics.

Size: 43.5 MB - Last synced: about 2 years ago - Pushed: almost 3 years ago

chf007/argo-workflows Fork of argoproj/argo-workflows
Workflow engine for Kubernetes

Size: 81.6 MB - Last synced: 5 months ago - Pushed: about 2 years ago

nerg4l/dokku Fork of dokku/dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications

Size: 11.6 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

openshift/csi-external-snapshotter Fork of kubernetes-csi/external-snapshotter
Sidecar container that watches Kubernetes Snapshot CRD objects and triggers CreateSnapshot/DeleteSnapshot against a CSI endpoint.

Size: 70.3 MB - Last synced: 12 months ago - Pushed: 12 months ago

stolostron/kube-state-metrics Fork of kubernetes/kube-state-metrics
Add-on agent to generate and expose cluster-level metrics.

Size: 23.3 MB - Last synced: 7 days ago - Pushed: 7 days ago

juanmanuel-tirado/terraform-provider-juju Fork of juju/terraform-provider-juju
A Terraform provider for Juju

Size: 638 KB - Last synced: almost 2 years ago - Pushed: almost 2 years ago

dgfug/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

Size: 420 MB - Last synced: 11 months ago - Pushed: 11 months ago

nixwiz/sensu-opsgenie-handler Fork of betorvs/sensu-opsgenie-handler
Sensu Go Opsgenie Handler https://sensu.io

Size: 234 KB - Last synced: 18 days ago - Pushed: almost 3 years ago

sensu/sensu-opsgenie-handler Fork of nixwiz/sensu-opsgenie-handler
Sensu Go Opsgenie Handler https://sensu.io

Size: 158 KB - Last synced: 12 months ago - Pushed: almost 3 years ago

slinkydeveloper/eventing-kafka-broker Fork of knative-sandbox/eventing-kafka-broker
Experimental Kafka Broker implementation

Size: 17.4 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

argoproj-labs/argocd-interlace
Enabling Software Supply Chain Security Capabilities in ArgoCD

Size: 10.2 MB - Last synced: about 2 months ago - Pushed: over 2 years ago

ekmixon/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

Size: 463 MB - Last synced: 10 days ago - Pushed: 10 days ago

pawanku2/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

Size: 490 MB - Last synced: 5 days ago - Pushed: 5 days ago

francissimo/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

Size: 423 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

soracom/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

Size: 903 MB - Last synced: 6 days ago - Pushed: 6 days ago

rizalgowandy/dokku Fork of dokku/dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications

Size: 11 MB - Last synced: 3 months ago - Pushed: 9 months ago

OpenFunction/cli
A CLI for interacting with OpenFunction.

Size: 431 KB - Last synced: 10 days ago - Pushed: over 2 years ago

nak3/serverless-operator Fork of openshift-knative/serverless-operator
An aggregation of serverless services

Size: 65.9 MB - Last synced: over 1 year ago - Pushed: over 1 year ago

coopstah13/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift

Size: 446 MB - Last synced: over 1 year ago - Pushed: about 2 years ago

AmadeusITGroup/external-secrets Fork of external-secrets/external-secrets
External Secrets Operator reads information from a third-party service like AWS Secrets Manager and automatically injects the values as Kubernetes Secrets.

Size: 96.5 MB - Last synced: 5 days ago - Pushed: 5 days ago

adamus1red/swarm-cronjob Fork of crazy-max/swarm-cronjob
Create jobs on a time-based schedule on Docker Swarm

Size: 2.65 MB - Last synced: about 1 year ago - Pushed: over 1 year ago

wujunwei/harbor Fork of goharbor/harbor
An open source trusted cloud native registry project that stores, signs, and scans content.

Size: 204 MB - Last synced: about 2 years ago - Pushed: almost 3 years ago

marcus-crane/gunslinger
A small golang server for odds and ends. Home to some APIs used by utf9k as well as automating some personal stuff.

Size: 776 KB - Last synced: 10 days ago - Pushed: 27 days ago

notpad/kubernetes Fork of kubernetes/kubernetes
Production-Grade Container Scheduling and Management

Size: 1.04 GB - Last synced: 2 days ago - Pushed: 2 days ago

joshiste/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift

Size: 449 MB - Last synced: 6 months ago - Pushed: over 2 years ago