Skip to content

Commit 3d72f9c

Browse files
committed
Update cron-connector example deployment instructions
We now have our own fork of the connector. Also added a page so that people can learn cron expressions quickly. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 6adc546 commit 3d72f9c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

docs/reference/cron.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,17 @@ spec:
188188

189189
## Cron Connector
190190

191-
The [cron event connector](https://github.com/zeerorg/cron-connector) is an OpenFaaS event-connector which can be used to trigger functions on a timed-basis. It works with all OpenFaaS providers.
191+
The [cron-connector](https://github.com/openfaas-incubator/cron-connector) is an OpenFaaS event-connector which can be used to trigger functions on a timed-basis. It makes use of the OpenFaaS REST API, so it is capable of working with all OpenFaaS providers.
192192

193193
### Kubernetes
194194

195195
* Deploy the connector
196196

197197
```sh
198-
curl -s https://raw.githubusercontent.com/zeerorg/cron-connector/master/yaml/kubernetes/connector-dep.yml | kubectl create --namespace openfaas -f -
198+
arkade install cron-connector
199199
```
200200

201-
* Now annotate a function with a `topic` to give it a schedule
201+
* Now annotate a function with a `topic` of `cron-function` and a `schedule` using a valid CRON expression:
202202

203203
```yaml
204204
# (Abridged YAML)
@@ -235,6 +235,8 @@ You'll see the function invoked every 5 minutes as per the schedule.
235235

236236
To stop the invocations, remove the two annotations or remove the cron-connector deployment.
237237

238+
If you would like to explore how to write CRON expressions, then see [https://crontab.guru/](https://crontab.guru/)
239+
238240
## Docker Swarm
239241

240242
Docker Swarm has no concepts of scheduled tasks or cron, but we have a suitable recommendation which you can use with your OpenFaaS cluster. If you deploy a Jenkins master service, then you can use that to manage your scheduled tasks. It will handle distributed locking, concurrency and queueing.

0 commit comments

Comments
 (0)