Procházet zdrojové kódy

:bug: fix command timeout

Jeremy Zheng před 1 rokem
rodič
revize
99ed404530
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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('压缩完成');