modify
This commit is contained in:
@@ -22,6 +22,8 @@ use Rpc\Producer;
|
||||
use Rpc\Service;
|
||||
use Snowflake\Abstracts\Config;
|
||||
use Snowflake\Core\Json;
|
||||
use Snowflake\Crontab\Consumer;
|
||||
use Snowflake\Crontab\CrontabZookeeperProcess;
|
||||
use Snowflake\Error\LoggerProcess;
|
||||
use Snowflake\Event;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
@@ -131,7 +133,10 @@ class Server extends HttpService
|
||||
public function start(): string
|
||||
{
|
||||
$configs = Config::get('servers', true);
|
||||
|
||||
if (Config::get('crontab.enable') === true) {
|
||||
$this->addProcess('CrontabZookeeper', CrontabZookeeperProcess::class);
|
||||
$this->addProcess('CrontabConsumer', Consumer::class);
|
||||
}
|
||||
$baseServer = $this->initCore($configs);
|
||||
if (!$baseServer) {
|
||||
return 'ok';
|
||||
|
||||
Reference in New Issue
Block a user