Skip to content

Commit 60c55ab

Browse files
committed
Update doc and examples
1 parent 9d71a22 commit 60c55ab

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.res/example/configs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
replicas: 0
1010
labels:
1111
- "swarm.cronjob.enable=true"
12-
- "swarm.cronjob.schedule=0 * * * * *"
12+
- "swarm.cronjob.schedule=* * * * *"
1313
- "swarm.cronjob.skip-running=false"
1414
restart_policy:
1515
condition: none

.res/example/global.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
mode: global
1111
labels:
1212
- "swarm.cronjob.enable=true"
13-
- "swarm.cronjob.schedule=0/10 * * * * *"
13+
- "swarm.cronjob.schedule=* * * * *"
1414
- "swarm.cronjob.skip-running=false"
1515
restart_policy:
1616
condition: none

.res/example/more_replicas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
replicas: 0
1010
labels:
1111
- "swarm.cronjob.enable=true"
12-
- "swarm.cronjob.schedule=*/10 * * * * *"
12+
- "swarm.cronjob.schedule=* * * * *"
1313
- "swarm.cronjob.skip-running=false"
1414
- "swarm.cronjob.replicas=5"
1515
restart_policy:

.res/example/sleep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
replicas: 0
1111
labels:
1212
- "swarm.cronjob.enable=true"
13-
- "swarm.cronjob.schedule=0/10 * * * * *"
13+
- "swarm.cronjob.schedule=0/30 * * * * *"
1414
- "swarm.cronjob.skip-running=true"
1515
restart_policy:
1616
condition: none

doc/install/binary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ swarm-cronjob binaries are available in [releases](https://github.com/crazy-max/
77
Choose the archive matching the destination platform and extract swarm-cronjob:
88

99
```
10-
wget -qO- https://github.com/crazy-max/swarm-cronjob/releases/download/1.3.0/swarm-cronjob_1.3.0_linux_x86_64.tar.gz | tar -zxvf - swarm-cronjob
10+
wget -qO- https://github.com/crazy-max/swarm-cronjob/releases/download/1.7.1/swarm-cronjob_1.7.1_linux_x86_64.tar.gz | tar -zxvf - swarm-cronjob
1111
```
1212

1313
## Test

doc/logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Here is a sample output:
55
```
66
$ docker service logs swarm_cronjob_app
77
swarm_cronjob_app.1.nvsjbhdhiagl@default | Thu, 13 Dec 2018 20:04:37 UTC INF Starting swarm-cronjob v1.2.0
8-
swarm_cronjob_app.1.nvsjbhdhiagl@default | Thu, 13 Dec 2018 20:04:37 UTC INF Add cronjob with schedule 0/10 * * * * * service=date_test
8+
swarm_cronjob_app.1.nvsjbhdhiagl@default | Thu, 13 Dec 2018 20:04:37 UTC INF Add cronjob with schedule * * * * * service=date_test
99
swarm_cronjob_app.1.nvsjbhdhiagl@default | Thu, 13 Dec 2018 20:05:00 UTC INF Start job last_status=n/a service=date_test
1010
swarm_cronjob_app.1.nvsjbhdhiagl@default | Thu, 13 Dec 2018 20:06:00 UTC INF Start job last_status=n/a service=date_test
1111
swarm_cronjob_app.1.nvsjbhdhiagl@default | Thu, 13 Dec 2018 20:07:00 UTC INF Start job last_status=n/a service=date_test

0 commit comments

Comments
 (0)