Skip to content
This repository was archived by the owner on Jan 16, 2020. It is now read-only.

Expose API for getting # of consecutive retry failures #154

Closed
scottgonzalez opened this issue Dec 4, 2013 · 2 comments
Closed

Expose API for getting # of consecutive retry failures #154

scottgonzalez opened this issue Dec 4, 2013 · 2 comments
Assignees

Comments

@scottgonzalez
Copy link
Contributor

This will be used to track historical failures and alert on a threshold.

@ghost ghost assigned scottgonzalez Dec 4, 2013
@scottgonzalez
Copy link
Contributor Author

This can be as simple as a single shell command:

sqlite3 retry.db "SELECT COALESCE(MAX( tries ), 0) FROM retry; SELECT COUNT(*) FROM retry;"

Which outputs two lines, each with one number.
First line is number of consecutive failures.
Second line is number of pending retries.

@scottgonzalez
Copy link
Contributor Author

Implemented in jquery/infrastructure@e32c2c199341f0ef226109480fb7475dc06e4244.

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

No branches or pull requests

1 participant