How can get status render from subprocess


Tell me please:
How can I control the rendering process through subprocess, if the process in blender is frozen or there may be another way to find out the status of its execution.
To solve the case, know the status of the renderer in the statuses: hung, running for a long time, used up all resources, not enough resources