check job state