This commit is contained in:
2021-03-01 18:22:05 +08:00
parent 387bcef77e
commit 58f658b196
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -118,9 +118,6 @@ class OnWorkerStart extends Callback
if (!Snowflake::app()->isRun()) {
return;
}
sleep(1);
$this->ticker();
}
+1 -2
View File
@@ -86,11 +86,10 @@ abstract class BaseApplication extends Service
/**
* @return bool
* @throws ComponentException
*/
public function isRun(): bool
{
$this->print_task_is_idle(__METHOD__);
// $this->print_task_is_idle(__METHOD__);
return $this->taskNumber > 0;
}