raiseSubtaskSchedulingException("Cannot schedule subtask id=%d because its predecessor id=%s in not FINISHED but state=%s"%(subtask.pk,predecessor.pk,predecessor.state.value))
raiseSubtaskSchedulingException("Cannot schedule subtask id=%d because its predecessor id=%s in not FINISHED but state=%s"%(subtask.pk,predecessor.pk,predecessor.state.value))