Jelajahi Sumber

:bug: fix command timeout

Jeremy Zheng 1 tahun lalu
induk
melakukan
99ed404530
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      api-v8/app/Console/Commands/ExportZip.php

+ 1 - 0
api-v8/app/Console/Commands/ExportZip.php

@@ -116,6 +116,7 @@ class ExportZip extends Command
         $this->info(implode(' ', $command));
         $this->info(implode(' ', $command));
         Log::debug('export offline zip start', ['command' => $command, 'format' => $this->argument('format')]);
         Log::debug('export offline zip start', ['command' => $command, 'format' => $this->argument('format')]);
         $process = new Process($command);
         $process = new Process($command);
+	$process->setTimeout(60*60*6);
         $process->run();
         $process->run();
         $this->info($process->getOutput());
         $this->info($process->getOutput());
         $this->info('压缩完成');
         $this->info('压缩完成');