$core
$core :
Query jobs and transform them to a proper `Job` instance.
__construct(\DevOwl\RealQueue\Core $core)
C'tor.
\DevOwl\RealQueue\Core | $core |
read(array $args = array()): array<mixed,\DevOwl\RealQueue\queue\Job>
Read jobs and cast them to proper `Job` instance.
Arguments:
[limit]
[type=all|pending|failure]
[jobType]
[dataContains]
Allows you in a very basic way to check if a job exists by data LIKE '%YOUR_STRING%'
[ids]
An array of Job ids which should be read[omitClientData=false]
If true
, data
will be omitted for server
workers[after]
Read all job ids after that one[lockUntil=0]
Add this seconds to UNIX-timestamp and mark the read jobs as locked_untilarray | $args |
fetchById(integer $id): \DevOwl\RealQueue\queue\Job|null
Fetch a single job by ID.
integer | $id |
Loading…