jquery-archive / plugins.jquery.com

The jQuery Plugins site
plugins.jquery.com
Other
1.24k stars 243 forks source link

Expose API for getting # of consecutive retry failures #154

Closed scottgonzalez closed 10 years ago

scottgonzalez commented 10 years ago

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

scottgonzalez commented 10 years ago

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 commented 10 years ago

Implemented in jquery/infrastructure@e32c2c199341f0ef226109480fb7475dc06e4244.