Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
feat(service): add healthcheck for arbitary service
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 26, 2019
1 parent 1263723 commit a3e22db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnes/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit a3e22db

Please sign in to comment.