How to check liveness probe for a worker deployed in Kubernetes

I came across below discussion and article about liveness probe of sidekiq workers. Is there any other way of checking liveness probe for a worker. 2 1

Just check for the existence of the pid file using a command based probe. See for your options.