Repository navigation
Releases
Releases · crunchdao/consulwire
0.2.0
Features
- kv: add the key/value store, with check-and-set, listing by prefix, and watches through blocking queries
- kv: lock keys for a session with
acquire=andrelease= - catalog: list the services of the cluster and every instance of a service
- health: list the healthy instances of a service, and watch them as they start, stop or fail
- agent: add the TTL checks, reported by the service with
pass_check(),warn_check()andfail_check() - session: create, renew, destroy and read sessions
- lock: hold a lock across the cluster with
consul.lock(), renewed in the background, withlostandlock_indexto detect a lost lock - client: convert between the clients with
as_async()andas_sync(), keeping the agent, token and timeout - testing: add an in-memory agent, to test an application without Consul: services, TTL checks, catalog, health, key/value store and sessions, with blocking queries
- integrations/gunicorn: register from the main process, with the port read from the bound sockets
- integrations/fastapi: leave the registration to the gunicorn hooks when they made it, so restarting workers do not touch Consul
- integrations/flask: add the health route before the first request, for servers that do not go through
application.run() - errors: add
ResponseError, naming the field of an answer that does not have the shape of the API
Changes
- integrations/flask:
deregister()logs its errors instead of raising them, like every integration at shutdown - requirements: depend on
anyiodirectly
Internal
- requests: document an example request and response for every call
- blocking: share one watch loop between every section
- responses: read every answer with the same strict parser
- integrations: share the registration, deregistration and logs
- docs: use generic names in the examples
- tests: run the lifespan directly instead of the test client
Full Changelog: 0.1.0...0.2.0
0.1.0
Initial release.
Full Changelog: https://github.com/crunchdao/consulwire/commits/0.1.0