Previously would not work properly if a job array to be canceled was partly running and partly pending