Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mongoose-os-libs/crontab


https://github.com/mongoose-os-libs/crontab

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Crontab

Crontab wraps [cron core](https://github.com/mongoose-os-libs/cron) and
maintains a persisted set of cron jobs. Crontab file is simply a JSON file
(actually managed by [jstore](https://github.com/mongoose-os-libs/jstore))
which looks like this:

```javascript
{"items":[
["1", {
"at": "0 0 7 * * MON-FRI",
"enable": true,
"action": "foo",
"payload": {"a": 1, "b": 2}
}],
["2", {
"at": "0 */2 1-4 * * *",
"enable": true,
"action": "bar"
}]
]}
```

For the cron expression syntax, see [cron
core](https://github.com/mongoose-os-libs/cron) docs.