summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAlex Price <[email protected]>2019-10-12 15:02:57 +1100
committerAlex Price <[email protected]>2019-10-12 15:38:40 +1100
commitc9fdfb6e9484b9aa45e20a90e78a23d5d129308c (patch)
tree61117f89311b7b8ec2cc680128ecdd1d27d6d94e /.travis.yml
parent8a840c40828c1fb31c69fc846a85738ddef0a7c7 (diff)
adds a health service for determining the status of the workers
This commit adds a health service which ensures that at least one worker is active. Uses `isActive()` to determine if the worker is ready. The health service runs on a seperate address. Will return a HTTP 200 if health, HTTP 500 otherwise. Fixes #192 Signed-off-by: Alex Price <[email protected]>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 9ae4200a..c061338c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,6 +26,7 @@ script:
- go test ./service/limit -race -v -coverprofile=limit.txt -covermode=atomic
- go test ./service/headers -race -v -coverprofile=headers.txt -covermode=atomic
- go test ./service/metrics -race -v -coverprofile=metrics.txt -covermode=atomic
+ - go test ./service/health -race -v -coverprofile=health.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash) -f lib.txt
@@ -38,6 +39,7 @@ after_success:
- bash <(curl -s https://codecov.io/bash) -f limit.txt
- bash <(curl -s https://codecov.io/bash) -f headers.txt
- bash <(curl -s https://codecov.io/bash) -f metrics.txt
+ - bash <(curl -s https://codecov.io/bash) -f health.txt
jobs:
include: