src/Process/ProcessSet.php
public function failDependants(string $className): array
    {
        $descendantProcesses = $this->getDependencyTree($className);

        $failedProcesses = [];
        foreach ($descendantProcesses as $processClassName => $processWrapper) {
            $failedProcesses[$processClassName] = $processWrapper;
            $processWrapper->setStatus(ProcessWrapper::PROCESS_STATUS_DONE);
        }

        return $failedProcesses;
    }
public function failDependants(string $className): array
    {
        $descendantProcesses = $this->getDependencyTree($className);

        $failedProcesses = [];
        foreach ($descendantProcesses as $processClassName => $processWrapper) {
            $failedProcesses[$processClassName] = $processWrapper;
            $processWrapper->setStatus(ProcessWrapper::PROCESS_STATUS_DONE);
        }

        return $failedProcesses;
    }
Mark all dependant processes of given process as failed

@return ProcessWrapper[] Processes that has been failed