-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00e4210
commit 17906a9
Showing
4 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"label": "Deployment Guides", | ||
"position": 3, | ||
"collapsible": false, | ||
"collapsed": false, | ||
"collapsed": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"label": "Exhaustive Documentation", | ||
"position": 4, | ||
"collapsible": false, | ||
"collapsed": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Crons | ||
|
||
You can specify crons in your `disco.json` file: | ||
```json | ||
{ | ||
"version": "1.0", | ||
"services": { | ||
"web": { | ||
"port": 8080, | ||
"command": "./bin/serve.sh" | ||
}, | ||
"mycron": { | ||
"type": "cron", | ||
"schedule": "0 * * * *", | ||
"command": "./bin/crons/hour.sh" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Basic Examples | ||
|
||
Here are a few basic examples of `crontab` notation to get you started: | ||
```json | ||
{ | ||
"version": "1.0", | ||
"services": { | ||
"web": { | ||
"port": 8080, | ||
"command": "./bin/serve.sh" | ||
}, | ||
"minutecron": { | ||
"type": "cron", | ||
"schedule": "* * * * *", | ||
"command": "./bin/cron/oneminute.sh" | ||
}, | ||
"hourcron": { | ||
"type": "cron", | ||
"schedule": "0 * * * *", | ||
"command": "./bin/cron/onehour.sh" | ||
}, | ||
"daycron": { | ||
"type": "cron", | ||
"schedule": "0 0 * * *", | ||
"command": "./bin/cron/oneday.sh" | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"label": "Get Started", | ||
"position": 2, | ||
"collapsible": false, | ||
"collapsed": false, | ||
"collapsed": false | ||
} |