You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arguably this could be in the calling code however it might be nice to centralise it and provide a config interface.
For example, checks must run within 200ms by default but you can specify a custom timeout in the check object. Perhaps failing to run within the timeout calls the warning callback?
constpostgresCheck={name: 'postgres',check: (ok,warning,critical)=>{pg.query.raw('SELECT version();',[]).then(ok).catch(critical);},timeout: 500// check needs a little longer than the default to run};
Overall goal here is to prevent a request from waiting indefinitely if theres a problem with the check code itself.
The text was updated successfully, but these errors were encountered:
Arguably this could be in the calling code however it might be nice to centralise it and provide a config interface.
For example, checks must run within 200ms by default but you can specify a custom timeout in the check object. Perhaps failing to run within the timeout calls the warning callback?
Overall goal here is to prevent a request from waiting indefinitely if theres a problem with the check code itself.
The text was updated successfully, but these errors were encountered: