Here is a query along with the list of status codes:
select *
from [databaseName].PFIWORKUNIT W
where W.STATUS =
-- 1 => Ready
-- 2 => Processing
-- 3 => Failed
-- 4 => Completed
-- 5 => Cancel Requested
-- 6 => Cancelling
-- 7 => Cancel Failed
-- 8 => Cancelled
-- 9 => Not Ready
--10 => Waiting