This commit is contained in:
2021-03-01 17:25:05 +08:00
parent 81b6d160eb
commit 631bc6ff1c
+3
View File
@@ -89,6 +89,7 @@ abstract class BaseApplication extends Service
*/
public function isRun(): bool
{
var_dump(Snowflake::getEnvironmental() . ':' . env('worker'));
return $this->state == 'SWOOLE_WORKER_BUSY';
}
@@ -115,6 +116,7 @@ abstract class BaseApplication extends Service
$this->taskNumber = 0;
$this->state = 'SWOOLE_WORKER_IDLE';
}
var_dump(Snowflake::getEnvironmental() . ':' . env('worker'));
var_dump($this->taskNumber, $this->state);
return $this;
}
@@ -132,6 +134,7 @@ abstract class BaseApplication extends Service
} else {
$this->state = 'SWOOLE_WORKER_BUSY';
}
var_dump(Snowflake::getEnvironmental() . ':' . env('worker'));
var_dump($this->taskNumber, $this->state);
return $this;
}