Implement job expiration and reaping

did you mean to reindent this?