Worker::runNextJob()

void runNextJob(string $connectionName, string $queue, WorkerOptions $options) Process the next job on the queue. Parameters string $connectionName string $queue WorkerOptions $options Return Value void

Worker::process()

void process(string $connectionName, Job $job, WorkerOptions $options) Process a given job from the queue. Parameters string $connectionName Job $job WorkerOptions $options Return Value void Exceptions Throwable

Worker::getManager()

QueueManager getManager() Get the queue manager instance. Return Value QueueManager

Worker::daemon()

void daemon(string $connectionName, string $queue, WorkerOptions $options) Listen to the given queue in a loop. Parameters string $connectionName string $queue WorkerOptions $options Return Value void

Worker

Worker class Worker (View source) Methods void __construct(QueueManager $manager, Dispatcher $events, ExceptionHandler $exceptions) Create a new queue worker. void daemon(string $connectionName, string $queue, WorkerOptions $options) Listen to the given queue in a loop. void runNextJob(string $connectionName, string $queue, WorkerOptions $options) Process the next job on the queue. void process(string $connectionName, Job $job, WorkerOptions $options) Process a given job fr

Worker::memoryExceeded()

bool memoryExceeded(int $memoryLimit) Determine if the memory limit has been exceeded. Parameters int $memoryLimit Return Value bool

WorkCommand::warn()

void warn(string $string, null|int|string $verbosity = null) Write a string as warning output. Parameters string $string null|int|string $verbosity Return Value void

WorkCommand::__construct()

void __construct(Worker $worker) Create a new queue listen command. Parameters Worker $worker Return Value void

WorkCommand::table()

void table(array $headers, Arrayable|array $rows, string $style = 'default') Format input to textual table. Parameters array $headers Arrayable|array $rows string $style Return Value void

WorkCommand::secret()

string secret(string $question, bool $fallback = true) Prompt the user for input but hide the answer from the console. Parameters string $question bool $fallback Return Value string