jquery-archive / plugins.jquery.com

The jQuery Plugins site

Home Page:plugins.jquery.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose API for getting # of consecutive retry failures

scottgonzalez opened this issue · comments

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

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.

Implemented in jquery/infrastructure@e32c2c199341f0ef226109480fb7475dc06e4244.