Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Support Consul response code: 429 #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kkzo
Copy link

@kkzo kkzo commented Dec 31, 2020

Consul returns a 429 response code when: Some healthchecks are passing, at
least one is warning (see https://www.consul.io/api-docs/agent/service).

This PR updates the callback handler to support response code 429.

@kkzo kkzo force-pushed the callback/permit_429 branch from e5d4af8 to 88ffec6 Compare December 31, 2020 16:49
@poppyred
Copy link
Owner

#22 will drop support v3.5,please fetch and merge new commit drop support v3.5

@codecov
Copy link

codecov bot commented Mar 4, 2021

Codecov Report

Merging #24 (2b6fb25) into master (7aa1ff4) will decrease coverage by 0.09%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage   94.45%   94.36%   -0.10%     
==========================================
  Files           6        6              
  Lines        1840     1845       +5     
==========================================
+ Hits         1738     1741       +3     
- Misses        102      104       +2     
Flag Coverage Δ
unittests 94.36% <66.66%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
consul/base.py 93.68% <66.66%> (-0.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7aa1ff4...2b6fb25. Read the comment docs.

Consul returns a 429 response code when: Some healthchecks are passing, at
least one is warning (see https://www.consul.io/api-docs/agent/service).

This PR updates the callback handler to support response code 429.
@kkzo kkzo force-pushed the callback/permit_429 branch from 69c49d0 to 2b6fb25 Compare March 4, 2021 14:27
@markblackman
Copy link

please merge as soon as convenient. If you do any kind of cluster monitoring with this package, the 429 response is a very common case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants