This commit is contained in:
2021-01-05 10:15:33 +08:00
parent c6411cc23f
commit 9ad16e7d70
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -33,6 +33,7 @@ abstract class Process extends \Swoole\Process implements SProcess
$class = get_called_class();
parent::__construct(function ($process) use ($name, $class) {
fire(Event::SERVER_WORKER_START);
putenv('workerId=Process.0');
if (Snowflake::isLinux()) {
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
$this->name($prefix . ': ' . $class);