|
|
@@ -11,7 +11,6 @@ use think\console\input\Argument;
|
|
|
use think\console\input\Option;
|
|
|
use think\console\Output;
|
|
|
use SixShop\System\Workerman\Worker as SixShopWorker;
|
|
|
-use Workerman\Crontab\Crontab;
|
|
|
use Workerman\Timer;
|
|
|
use Workerman\Worker;
|
|
|
|
|
|
@@ -70,12 +69,6 @@ class WorkerCommand extends Command
|
|
|
},
|
|
|
name: 'crontab',
|
|
|
count: 1,
|
|
|
- onWorkerStop: function (Worker $worker) {
|
|
|
- foreach (Crontab::getAll() as $crontab) {
|
|
|
- /** @var Crontab $crontab */
|
|
|
- $crontab->destroy();
|
|
|
- }
|
|
|
- }
|
|
|
);
|
|
|
}
|
|
|
/**
|