diff --git a/core/phpspider.php b/core/phpspider.php index fcf9dab..fd34f2e 100755 --- a/core/phpspider.php +++ b/core/phpspider.php @@ -455,6 +455,12 @@ public function __construct($configs = array()) self::$tasknum = $configs['tasknum']; } + if (isset($configs['tasknum']) && $configs['tasknum'] > 1 && !isset($configs['queue_config'])){ + $msg = "Please configure parameters to enable multi-process 'queue_config'"; + log::error($msg); + exit; + } + // 是否设置了保留运行状态 if (isset($configs['save_running_state'])) { diff --git a/test.go b/test.go new file mode 100644 index 0000000..bbc4f9a --- /dev/null +++ b/test.go @@ -0,0 +1,8 @@ +package main + +import "fmt" + +func main() { + fmt.Println("vim-go") + fmt +}