Przeglądaj źródła

:bug: fix command timeout

Jeremy Zheng 1 rok temu
rodzic
commit
99ed404530
1 zmienionych plików z 1 dodań i 0 usunięć
  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));
         Log::debug('export offline zip start', ['command' => $command, 'format' => $this->argument('format')]);
         $process = new Process($command);
+	$process->setTimeout(60*60*6);
         $process->run();
         $this->info($process->getOutput());
         $this->info('压缩完成');