For old workunit, the @pid is not set here. So, it could be empty.