python-consul
python-consul copied to clipboard
Consul Graceful Leave
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?
Hello ! The force-leave API change has been merged but not yet released on Pypi https://github.com/cablehead/python-consul/pull/224
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.