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
It sometimes happens that the API is no longer working. The easiest symptom to catch is that users don't get a QR code anymore when starting a new session (here). We use pingdom to ping whether the api is up and running (api.opencap.ai), but it does not catch when the API is up but not properly functioning (eg, not getting the QR code). When we don't get the QR code, we usually just reboot the API by triggering the Github action (here).
Suggested unit test:
Create a new session every x seconds and verify that a QR code is generated
Great. Should we just replace the sessions\health_check endpoint that pingdom is pinging with a \new call? If it doesn't get a QR back in 15 seconds, it triggers the github action. If it does get a qr code, it calls \sessions\<session_id>\delete?
It would also be very easy to just do this on the opencap-core machines, but it may be less reliable. Timed lambda functions is another option.
I got the webhook all set up. Currently if you do this POST request, it triggers the Action. We just need to move this one-liner to the prod ecr.yaml when ready (bb1939d)
It sometimes happens that the API is no longer working. The easiest symptom to catch is that users don't get a QR code anymore when starting a new session (here). We use pingdom to ping whether the api is up and running (api.opencap.ai), but it does not catch when the API is up but not properly functioning (eg, not getting the QR code). When we don't get the QR code, we usually just reboot the API by triggering the Github action (here).
Suggested unit test:
Thoughts @suhlrich and @AlbertoCasasOrtiz ?
The text was updated successfully, but these errors were encountered: