solid_queue icon indicating copy to clipboard operation
solid_queue copied to clipboard

Health check

Open tchukuchuk opened this issue 1 year ago • 2 comments

Hi I would like to implement an health check for Solid Queue, but it seems difficult to check pidfile of the supervisor in a container context. I am wondering if the polling of SolidQueue::Process#last_heartbeat_at column should the good way to check health of Solid Queue, what do you think of it ?

Thanks.

tchukuchuk avatar Jun 13 '24 15:06 tchukuchuk

Hey @tchukuchuk, so sorry for the delay! I totally missed this one 😓

The last_heartbeat_at column could work if you check a single supervisor, but I'm planning to provide some more useful hooks as part of https://github.com/rails/solid_queue/issues/179#issuecomment-2162927247, in case you wanted this for readiness status.

rosa avatar Aug 24 '24 20:08 rosa

Thanks for your patience! Here's what I added to help with k8s readiness status: #317. Would this help in your case?

rosa avatar Sep 02 '24 16:09 rosa