Script to set a job as Pending if a dependecy is not Complete