python-consul icon indicating copy to clipboard operation
python-consul copied to clipboard

Consul Graceful Leave

Open iamjazzar opened this issue 6 years ago • 2 comments

Is there any way I can perform a graceful leave and shutdown for consul agent using this library that performs the following action?

$ curl \
    --request PUT \
    http://127.0.0.1:8500/v1/agent/leave

Also, when I tried to use force_leave in version 1.1.0, the server responded with 405 because that version still uses get method instead of put (here). Is there any upcoming release that will include this fix?

iamjazzar avatar Sep 20 '18 07:09 iamjazzar

Hello ! The force-leave API change has been merged but not yet released on Pypi https://github.com/cablehead/python-consul/pull/224

abarbare avatar Oct 01 '18 16:10 abarbare

Any updates on when this will be pushed? I did a pip install today and am still getting this 405 GET not allowed on force_leave.

Salgat avatar Apr 30 '19 16:04 Salgat