Skip to content

Commit 6be25a0

Browse files
authored
Merge pull request #155 from kayw-geek/master
修复开启多任务未配置queue_config参数导致的错误
2 parents e2d732d + ef5767b commit 6be25a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/phpspider.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ public function __construct($configs = array())
455455
self::$tasknum = $configs['tasknum'];
456456
}
457457

458+
if (isset($configs['tasknum']) && $configs['tasknum'] > 1 && !isset($configs['queue_config'])){
459+
$msg = "Please configure parameters to enable multi-process 'queue_config'";
460+
log::error($msg);
461+
exit;
462+
}
463+
458464
// 是否设置了保留运行状态
459465
if (isset($configs['save_running_state']))
460466
{

0 commit comments

Comments
 (0)