Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resque-scheduler'title can not set to user'title,but resque-worker do #68

Open
jackyli86 opened this issue Sep 27, 2022 · 0 comments
Open
Labels

Comments

@jackyli86
Copy link

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:
@jackyli86 jackyli86 added the bug label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant