Manager/ProcessManager.php
protected function endProcess(ProcessHistory $history): void
    {
        // Do not change state if already set
        if ($history->isStarted()) {
            $history->setSuccess();

            $this->processLogger->info(
                "Process {$history->getProcessCode()} succeed",
                [
                    'duration' => $history->getDuration(),
                ]
            );
        }
    }
protected function endProcess(ProcessHistory $history): void
    {
        // Do not change state if already set
        if ($history->isStarted()) {
            $history->setSuccess();

            $this->processLogger->info(
                "Process {$history->getProcessCode()} succeed",
                [
                    'duration' => $history->getDuration(),
                ]
            );
        }
    }
@param ProcessHistory $history