Skip to content

Commit

Permalink
fix: Worker 增加 $statusFile 变量默认设置
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Nov 14, 2024
1 parent 62f8b04 commit 3550bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/think-plugs-worker/src/command/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function execute(Input $input, Output $output)

// 静态属性设置
foreach ($this->config['worker'] ?? [] as $name => $value) {
if (in_array($name, ['daemonize', 'stdoutFile', 'pidFile', 'logFile'])) {
if (in_array($name, ['daemonize', 'statusFile', 'stdoutFile', 'pidFile', 'logFile'])) {
Workerman::${$name} = $value;
unset($this->config['worker'][$name]);
}
Expand Down

0 comments on commit 3550bbe

Please sign in to comment.