Skip to content
Permalink
Browse files

feat(service): add healthcheck for arbitary service

  • Loading branch information...
hanxiao committed Sep 26, 2019
1 parent 1263723 commit a3e22db3caebf9ff1338f455ca8fb1391d2200ea
Showing with 2 additions and 2 deletions.
  1. +2 −2 gnes/cli/parser.py
@@ -252,9 +252,9 @@ def set_healthcheck_parser(parser=None):
help='number of health checks retried before exit')
# we cant wait for health check signal forever, thus set to 5 seconds
parser.set_defaults(timeout=5)
ctrl_port = int(os.environ.get('GNES_CONTROL_PORT'))
ctrl_port = os.environ.get('GNES_CONTROL_PORT')
if ctrl_port:
parser.set_defaults(port_out=ctrl_port)
parser.set_defaults(port_out=int(ctrl_port))
return parser


0 comments on commit a3e22db

Please sign in to comment.
You can’t perform that action at this time.