{"id":13723506,"url":"https://github.com/openfaas/cron-connector","last_synced_at":"2025-08-12T13:44:19.553Z","repository":{"id":48682185,"uuid":"225460194","full_name":"openfaas/cron-connector","owner":"openfaas","description":"Invoke functions on a schedule.","archived":false,"fork":false,"pushed_at":"2025-01-21T12:48:53.000Z","size":298,"stargazers_count":38,"open_issues_count":4,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T02:23:19.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"zeerorg/cron-connector","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfaas.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":"2019-12-02T20:14:58.000Z","updated_at":"2025-02-11T21:57:11.000Z","dependencies_parsed_at":"2023-01-17T18:30:34.957Z","dependency_job_id":null,"html_url":"https://github.com/openfaas/cron-connector","commit_stats":null,"previous_names":["openfaas-incubator/cron-connector"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fcron-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fcron-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fcron-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fcron-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfaas","download_url":"https://codeload.github.com/openfaas/cron-connector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509654,"owners_count":19974071,"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":[],"created_at":"2024-08-03T01:01:42.343Z","updated_at":"2025-03-02T13:13:00.529Z","avatar_url":"https://github.com/openfaas.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Invoke your functions on a cron schedule\n\nThis is a cron event connector for OpenFaaS. This was built to provide a timer interface to trigger OpenFaaS functions. Also checkout [OpenFaaS docs on cron](https://docs.openfaas.com/reference/cron/) for other methods on how you can run functions triggered by cron.\n\nThis project was forked from [zeerorg/cron-connector](https://github.com/openfaas/cron-connector) to enable prompt updates and patches for end-users.\n\n## How to Use\n\nFirst, [deploy OpenFaaS with faasd or Kubernetes](https://docs.openfaas.com/deployment/)\n\n### Deploy the connector for Kubernetes\n\nFor Kubernetes, see: [Scheduling function runs](https://docs.openfaas.com/reference/cron/)\n\n### Deploy the connector for faasd\n\nFor faasd, see [Serverless For Everyone Else](https://gumroad.com/l/serverless-for-everyone-else).\n\n### Trigger a function from Cron\n\nThe function should have 2 annotations:\n\n1. `topic` annotation should be `cron-function`.\n2. `schedule` annotation should be the cron schedule on which to invoke function\n\nFor example, we may have a function \"nodeinfo\" which we want to invoke every 5 minutes:\n\nDeploy via the CLI:\n\n```bash\nfaas-cli store deploy nodeinfo \\\n  --annotation schedule=\"*/5 * * * *\" \\\n  --annotation topic=cron-function\n```\n\nOr via `stack.yml`:\n\n```yaml\nfunctions:\n  nodeinfo:\n    image: functions/nodeinfo\n    annotations:\n      topic: cron-function\n      schedule: \"*/5 * * * *\"\n```\n\nYou can learn how to create and test the [Cron syntax here](https://crontab.guru/every-5-minutes).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Fcron-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfaas%2Fcron-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Fcron-connector/lists"}