diff --git a/src/Console/SupervisorCommand.php b/src/Console/SupervisorCommand.php index 760db610..c50ef401 100644 --- a/src/Console/SupervisorCommand.php +++ b/src/Console/SupervisorCommand.php @@ -23,7 +23,7 @@ class SupervisorCommand extends Command {--max-processes=1 : The maximum number of total workers to start} {--min-processes=1 : The minimum number of workers to assign per queue} {--memory=128 : The memory limit in megabytes} - {--nice=0 : Increment to the process niceness} + {--nice=0 : The process priority} {--paused : Start the supervisor in a paused state} {--queue= : The names of the queues to work} {--sleep=3 : Number of seconds to sleep when no job is available} diff --git a/src/SupervisorOptions.php b/src/SupervisorOptions.php index 3b7957be..579f2234 100644 --- a/src/SupervisorOptions.php +++ b/src/SupervisorOptions.php @@ -49,7 +49,7 @@ class SupervisorOptions extends WorkerOptions public $minProcesses = 1; /** - * Increment to the process niceness. + * The process priority. * * @var int */ @@ -84,12 +84,12 @@ public function __construct($name, $connection, $queue = null, $balance = 'off', $timeout = 60, $sleep = 3, $maxTries = 0, $force = false, $nice = 0) { $this->name = $name; + $this->nice = $nice; $this->balance = $balance; $this->connection = $connection; $this->maxProcesses = $maxProcesses; $this->minProcesses = $minProcesses; $this->queue = $queue ?: config('queue.connections.'.$connection.'.queue'); - $this->nice = $nice; parent::__construct($delay, $memory, $timeout, $sleep, $maxTries, $force); }