WORKER_SERVER
WORKER_SERVER ='server'
A job model.
$worker :string
Where should this job be executed? Default is `server`. If you set this to `client` you need to manually resolve this job as done in your frontend coding (e.g. extra request).
Client-Worker:
exposeCallable()
passthruClientResult()
locked
check before starting the expensive task
Please use WORKER_
constants.
$callable :callable
The callable for this job.
Attention: If you are using a client-worker, you need to register a custom event, see
also CLIENT_JOB_EVENT_PREFIX
for more information!
Please note the following things:
server
workerJob $job
$job->updateProcess()
to mark the job as in progress or done!WP_Error
instance__construct(\DevOwl\RealQueue\Core $core)
C'tor.
\DevOwl\RealQueue\Core | $core |