Skip to content

Commit

Permalink
在 JobConsumerManager 中修改进程名称生成逻辑,支持空队列时使用 '[auto]' 作为默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Oct 12, 2024
1 parent b006778 commit 3ef2077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amqp-job/src/JobConsumerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function run(): void

$process = $this->createProcess($instance);
$process->nums = $instance->getNums();
$process->name = $class . 'Consumer-' . $instance->getQueue();
$process->name = $class . 'Consumer-' . ($instance->getQueue() ?: '[auto]');

ProcessManager::register($process);
}
Expand Down

0 comments on commit 3ef2077

Please sign in to comment.