project = $project; } /** * Execute the job. */ public function handle(): void { ProjectLogger::log($this->project,'start interpolate growth model', [$this->project->name]); $command = [ sprintf('%s/interpolate_growth_model.sh', base_path('../')), sprintf('--project_dir=%s', $this->project->download_path), ]; $process = new Process($command); $process->setTimeout(600); $process->run(); if (!$process->isSuccessful()) { ProjectLogger::log($this->project, $process->getErrorOutput()); return; } ProjectLogger::log($this->project, $process->getOutput()); } }