php-resque
php-resque copied to clipboard
resque-scheduler'title can not set to user'title,but resque-worker do
I compare the code between resque and resque-scheduler ,find thair differrency,
resque scheduler private function updateProcLine($status) { $processTitle = 'resque-scheduler-' . ResqueScheduler::VERSION . ': ' . $status; if(function_exists('setproctitle')) { setproctitle($processTitle); }
echo "setproctitle = " . function_exists('setproctitle') ? "true" : "false" . PHP_EOL;
}
resque worker private function updateProcLine($status) { $processTitle = static::$processPrefix . '-' . Resque::VERSION . ' (' . implode(',', $this->queues) . '): ' . $status; if(function_exists('cli_set_process_title') && PHP_OS !== 'Darwin') { cli_set_process_title($processTitle); } else if(function_exists('setproctitle')) { setproctitle($processTitle); } }
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce
Context
My Environment
- PHP-Resque version:
- PHP version:
- Redis version:
- Server type and version:
- Operating System and version: