Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 20, 2019
1 parent 4fa8c60 commit 8d0034b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Console/SupervisorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions src/SupervisorOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class SupervisorOptions extends WorkerOptions
public $minProcesses = 1;

/**
* Increment to the process niceness.
* The process priority.
*
* @var int
*/
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 8d0034b

Please sign in to comment.