Supervisor
class Supervisor implements Pausable, Restartable, Terminable
Traits
Properties
| protected array | $pendingSignals | The pending signals that need to be processed. |
from ListensForSignals |
| string | $name | The name of this supervisor instance. |
|
| ProcessPool> | $processPools | All of the process pools being managed. |
|
| bool | $working | Indicates if the Supervisor processes are working. |
|
| CarbonImmutable|null | $lastAutoScaled | The time at which auto-scaling last ran for this supervisor. |
|
| Closure|null | $output | The output handler. |
|
| protected int|null | $exitStatus | The terminal exit status for this supervisor. |
Methods
Create the supervisor's process pools.
Create a process pool for each queue.
Create a single process pool.
Scale the process count.
Balance the process pool at the given scales.
No description
Details
in
ListensForSignals at line 26
protected void
listenForSignals()
Listen for incoming process signals.
in
ListensForSignals at line 54
protected void
processPendingSignals()
Process the pending signals.
at line 62
__construct(SupervisorOptions $options)
Create a new supervisor instance.
at line 77
Collection
createProcessPools()
Create the supervisor's process pools.
at line 87
protected Collection
createProcessPoolPerQueue()
Create a process pool for each queue.
at line 97
protected Collection
createSingleProcessPool()
Create a single process pool.
at line 105
protected ProcessPool
createProcessPool(SupervisorOptions $options)
Create a new process pool with the given options.
at line 115
void
scale(int $processes)
Scale the process count.
at line 131
void
balance(array $balance)
Balance the process pool at the given scales.
at line 137
__call($method, $arguments)
No description