public function cancelAllNotStartedChildJobs(Job $job)
    {
        if (!$job->isRoot() || !$job->getChildJobs()) {
            return;
        }

        foreach ($job->getChildJobs() as $childJob) {
            if (in_array($childJob->getStatus(), $this->getNotStartedJobStatuses(), true)) {
                $this->cancelChildJob($childJob);
            }
        }
    }