Download the PHP package netlogix/jobqueue-pool without Composer
On this page you can find all versions of the php package netlogix/jobqueue-pool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netlogix/jobqueue-pool
More information about netlogix/jobqueue-pool
Files in netlogix/jobqueue-pool
Package jobqueue-pool
Short Description Hold a pool of subprocesses to execute jobs in
License MIT
Informations about the package jobqueue-pool
Netlogix.JobQueue.Pool
This package runs jobs (immplements \Flowpack\JobQueue\Common\Job\JobInterface)
in \React\ChildProcess\Process and provides a \React\EventLoop\LoopInterface
to do some work in the parent process while waiting for the children to complete.
Arguments:
Output results:
Links stdout of the child process to stdout of the parent process and stderr of the child process to stderr of the parent process.
This is close to what \Neos\Flow\Core\Booting\Scripts::executeCommand()
does, with our implementation actually differentiate between stdout and
stderr while Neos\Flow passes everything to stdout.
This can be done manually to do some processing of the given streams:
Running all child processes asynchronously:
It is possible to run child processes asynchronously, although this means there is no stdout and stderr connection from the child to the parent.
Start worker children although no task is available
Creates a set number of worker children in advanced without assigning a queue name or a job payload to them.
This will allow for the children to boot up and e.g. warm singleton instances up.
We don't provide any useful warmup code here, so add e.g. advices yourself.
Custom loop object
Just in case there other code already created a running event loop, which is possible in theory but not very likely.
All versions of jobqueue-pool with dependencies
flowpack/jobqueue-common Version ^3.0
neos/flow Version ^5.0 || ^8.0
react/child-process Version ^0.6