Use _WorkState instead of WorkState for comparison
Use _WorkState instead of WorkState for comparison

job.state != WorkState.RUNNING never evaluated as true.

pyfarm/pyfarm-master,pyfarm/pyfarm-master,pyfarm/pyfarm-master