This commit is contained in:
2021-04-28 12:29:31 +08:00
parent 9ce9c1ca58
commit 0c2a529910
+3 -3
View File
@@ -31,9 +31,9 @@ class CrontabProviders extends Providers
{
$server = $application->getServer();
$application->set('crontab', ['class' => Producer::class]);
// if (Config::get('crontab.enable') !== true) {
// return;
// }
if (Config::get('crontab.enable') !== true) {
return;
}
$server->addProcess('CrontabZookeeper', Zookeeper::class);
}