run($this->sessionId, $this->runId); } catch (\Throwable $e) { $sink->appendError($this->sessionId, $this->runId, 'run.failed', $e->getMessage()); $sink->appendRunStatus($this->sessionId, $this->runId, 'FAILED', [ 'error' => $e->getMessage(), 'dedupe_key' => "run:{$this->runId}:status:FAILED", ]); throw $e; } } }