WorkerProcess
class WorkerProcess mixin Process
Constants
| protected STARTUP_SIGNALS |
Signals handled by a queue worker after its application boots. |
Properties
| Closure|null | $output | The output handler callback. |
|
| CarbonImmutable|null | $restartAgainAt | The time at which the cooldown period will be over. |
Methods
Create a new worker process instance.
Pause the worker process.
Instruct the worker process to continue working.
Evaluate the current state of the process.
Restart the process.
Terminate the underlying process.
Stop the underlying process.
Stop the underlying process immediately.
Send a POSIX signal to the process.
Begin the cool-down period for the process.
Determine if the process is cooling down from a failed restart.
Pass on method calls to the underlying process.
Details
at line 48
__construct(Process $process)
Create a new worker process instance.
at line 56
WorkerProcess
start(Closure $callback)
Start the process.
at line 93
void
pause()
Pause the worker process.
at line 101
void
continue()
Instruct the worker process to continue working.
at line 109
void
monitor()
Evaluate the current state of the process.
at line 121
protected void
restart()
Restart the process.
at line 138
void
terminate()
Terminate the underlying process.
at line 146
void
stop()
Stop the underlying process.
at line 156
void
kill()
Stop the underlying process immediately.
at line 166
protected void
sendSignal(int $signal)
Send a POSIX signal to the process.
at line 180
protected void
cooldown()
Begin the cool-down period for the process.
at line 207
bool
coolingDown()
Determine if the process is cooling down from a failed restart.
at line 216
WorkerProcess
handleOutputUsing(Closure $callback)
Set the output handler.
at line 226
mixed
__call(string $method, array $parameters)
Pass on method calls to the underlying process.