add getWorkerStatus()

I added the function getWorkerStatus().