Also I noticed you're using find() here, which only returns the first element of a sequence that matches a predicate (if any). Did you want to cancel all the stages submitted by this job? In that case you'd do filter().