改名
This commit is contained in:
@@ -207,9 +207,9 @@ abstract class Crontab extends BaseObject
|
|||||||
*/
|
*/
|
||||||
public function execute(): void
|
public function execute(): void
|
||||||
{
|
{
|
||||||
\Swoole\Coroutine\go(function ($application) {
|
defer(function () {
|
||||||
$application->isRecover($application);
|
$this->isRecover();
|
||||||
}, $this);
|
});
|
||||||
$this->run();
|
$this->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class Zookeeper extends Process
|
|||||||
*/
|
*/
|
||||||
public function onHandler(\Swoole\Process $process): void
|
public function onHandler(\Swoole\Process $process): void
|
||||||
{
|
{
|
||||||
/** @var \Snowflake\Crontab\Producer $crontab */
|
/** @var Producer $crontab */
|
||||||
$crontab = Snowflake::app()->get('crontab');
|
$crontab = Snowflake::app()->get('crontab');
|
||||||
$crontab->clearAll();
|
$crontab->clearAll();
|
||||||
if (Snowflake::getPlatform()->isLinux()) {
|
if (Snowflake::getPlatform()->isLinux()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user