改名
This commit is contained in:
@@ -118,9 +118,6 @@ class OnWorkerStart extends Callback
|
|||||||
if (!Snowflake::app()->isRun()) {
|
if (!Snowflake::app()->isRun()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
$this->ticker();
|
$this->ticker();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,11 +86,10 @@ abstract class BaseApplication extends Service
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
* @throws ComponentException
|
|
||||||
*/
|
*/
|
||||||
public function isRun(): bool
|
public function isRun(): bool
|
||||||
{
|
{
|
||||||
$this->print_task_is_idle(__METHOD__);
|
// $this->print_task_is_idle(__METHOD__);
|
||||||
return $this->taskNumber > 0;
|
return $this->taskNumber > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user