processVideo($this->generation); } catch (Throwable $e) { $this->generation->update(['status' => 'failed', 'error' => $e->getMessage()]); throw $e; } } }