Why return -1?  Maybe it would be better to exclude this job from the result.