Skip to content

Releases: amenezes/discovery-client

1.0.3

12 Nov 16:50
Compare
Choose a tag to compare

changelog

  • Updated docs
  • disable_redirects removed from service checks

1.0.1

11 Dec 21:28
Compare
Choose a tag to compare

changelog

  • 🐞 Fixes the observation connection feature that created multiple tasks to reconnect with the consul leader if the leader ID changed.

1.0.0

09 Dec 11:47
Compare
Choose a tag to compare

changelog

  • Updated docs
  • Updated CLI
  • Internal code refactored

v0.2.5

01 Jul 00:38
Compare
Choose a tag to compare

changelog

  • fix connection failure when consul's leader running locally

v0.2.4

22 Apr 18:09
Compare
Choose a tag to compare

Changelog

  • Fixed consul connection on cluster mode.
    Now Consul's connection will occur with the leader instance as well the reconnection flow.

v0.2.3

12 Apr 17:33
Compare
Choose a tag to compare

Changelog

  • Bug fix on aioclient reconnect method.

v0.2.2

31 Mar 00:00
Compare
Choose a tag to compare

Changelog

  • new flow to reconnect on Consul in case of unavailability.

v0.2.1

01 Mar 14:24
Compare
Choose a tag to compare

Changelog

  • find_service method now return a dict on format:
{'node': 'a60a5b512b4f', 'address': '127.0.0.1', 'service_id': 'consul', 'service_name': 'consul', 'service_port': 8300}

If more than one instance exists round robin will be set by default, or the method can be changed specifying a different option, for example:

dc.find_service('consul', method='random')
  • find_services method returns a list on format:
[{'node': 'a60a5b512b4f-0', 'address': '127.0.0.1', 'service_id': 'consul', 'service_name': 'consul', 'service_port': 8300},{'node': 'a60a5b512b4f-1', 'address': '127.0.0.1', 'service_id': 'consul', 'service_name': 'consul', 'service_port': 8300}]
  • the default timeout to reconnect that will be use by method consul_is_healty now it's 30 seconds and his value can be changed though the environment variable DEFAULT_TIMEOUT.

For aioclient only, now it's necessary create a specific task if you wish reconnect on consul in case of unavailability of service. See the examples related on file README.md or examples folder for more details.

v0.1.3

27 Feb 21:39
Compare
Choose a tag to compare

First public release.