Skip to content

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

Description

@jackyli86

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions