crowdstar/job-worker

Wrapper for adding serialized self-contained Resque jobs to a queue

1.0.0 2019-03-21 23:49 UTC

This package is auto-updated.

Last update: 2022-06-26 01:46:28 UTC


README

Build Status

Wrapper for adding serialized self-contained Resque jobs to a queue

Built for PHP Resque Ex

Installation

composer require crowdstar/job-worker:~1.0.0

Sample Usage

<?php
use CrowdStar\JobWorker\Queue;

$queue = new Queue('redishost:port', 'redispassword');
$result = $queue->addHighPriorityJob(array('CrowdStar\Covet\Debug', 'debug'), array('some output'));

Processing jobs

To process jobs PHP Resque Ex needs to be running in a environment with your codebase