Skip to content

Commit a84df87

Browse files
committed
fixed startup-grace in example configs by including unit
1 parent 4b1208e commit a84df87

File tree

5 files changed

+21
-87
lines changed

5 files changed

+21
-87
lines changed

cardamon.bk.toml

Lines changed: 0 additions & 68 deletions
This file was deleted.

cardamon.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ curve = [7.627190097500079,0.07551567953624883,20.45110313049153,-1.526142275974
2323
# desc - command to stop the process. In the case of bare-metal processes
2424
# cardamon will pass the PID of the process to this command. You can
2525
# use `{pid}` as a placeholder in the command e.g. `kill {pid}`.
26-
# default: empty string
26+
# default - empty string
2727
# required - false
2828
#
2929
# proccess.type:
@@ -45,14 +45,14 @@ curve = [7.627190097500079,0.07551567953624883,20.45110313049153,-1.526142275974
4545
# output, "parent" attaches the processes output to cardamon, "file"
4646
# writes stdout and stderr to a file of the same name as this
4747
# process e.g. db.stdout.
48-
# default: "file"
48+
# default - "file"
4949
# required - false
5050
#
5151
# startup_grace:
52-
# type - integer
53-
# desc - the number of milliseconds Cardamon will wait before running
54-
# scenarios
55-
# default - 2000 ms
52+
# type - string
53+
# desc - the duration Cardamon will wait before running scenarios. Remember
54+
# to include the duration unit. e.g ms, s etc
55+
# default - "2000ms"
5656
# required - false
5757
#
5858
# EXAMPLE
@@ -64,7 +64,7 @@ curve = [7.627190097500079,0.07551567953624883,20.45110313049153,-1.526142275974
6464
# redirect.to = "file"
6565
# process.type = "docker"
6666
# process.containers = ["postgres"]
67-
# startup_grace = 4000
67+
# startup_grace = "4000ms"
6868

6969
[[process]]
7070
name = "test_proc"

examples/hybrid/cardamon.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ down = "bash -c 'docker stop c1 && docker rm c1'"
2525
redirect.to = "file"
2626
process.type = "docker"
2727
process.containers = ["c1"]
28-
startup_grace = 8000
28+
startup_grace = "8000ms"
2929

3030
# Scenarios
3131
# ########################################

src/templates/cardamon.unix.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343
# process e.g. db.stdout.
4444
# default: "file"
4545
# required - false
46-
#
46+
#
4747
# startup_grace:
48-
# type - integer
49-
# desc - the number of milliseconds Cardamon will wait before running
50-
# scenarios
51-
# default - 2000 ms
48+
# type - string
49+
# desc - the duration Cardamon will wait before running scenarios. Remember
50+
# to include the duration unit. e.g ms, s etc
51+
# default - "2000ms"
5252
# required - false
5353
#
5454
# EXAMPLE
@@ -60,6 +60,7 @@
6060
# redirect.to = "file"
6161
# process.type = "docker"
6262
# process.containers = ["postgres"]
63+
# startup_grace = "4000ms"
6364

6465
[[process]]
6566
name = "test_proc"

src/templates/cardamon.win.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# desc - command to stop the process. In the case of bare-metal processes
2020
# cardamon will pass the PID of the process to this command. You can
2121
# use `{pid}` as a placeholder in the command e.g. `kill {pid}`.
22-
# default: empty string
22+
# default - empty string
2323
# required - false
2424
#
2525
# proccess.type:
@@ -41,14 +41,14 @@
4141
# output, "parent" attaches the processes output to cardamon, "file"
4242
# writes stdout and stderr to a file of the same name as this
4343
# process e.g. db.stdout.
44-
# default: "file"
44+
# default - "file"
4545
# required - false
4646
#
4747
# startup_grace:
48-
# type - integer
49-
# desc - the number of milliseconds Cardamon will wait before running
50-
# scenarios
51-
# default - 2000 ms
48+
# type - string
49+
# desc - the duration Cardamon will wait before running scenarios. Remember
50+
# to include the duration unit. e.g. ms, s etc
51+
# default - "2000ms"
5252
# required - false
5353
#
5454
# EXAMPLE
@@ -60,6 +60,7 @@
6060
# redirect.to = "file"
6161
# process.type = "docker"
6262
# process.containers = ["postgres"]
63+
# startup_grace = "4000ms"
6364

6465
[[process]]
6566
name = "test_proc"

0 commit comments

Comments
 (0)