crowdstar/job-worker

此包已被弃用且不再维护。未建议替代包。

用于将序列化的自包含 Resque 任务添加到队列的包装器

1.0.0 2019-03-21 23:49 UTC

This package is auto-updated.

Last update: 2023-06-26 04:08:12 UTC


README

Build Status

用于将序列化的自包含 Resque 任务添加到队列的包装器

为 PHP Resque Ex 构建

安装

composer require crowdstar/job-worker:~1.0.0

示例用法

<?php
use CrowdStar\JobWorker\Queue;

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

处理任务

要处理任务,PHP Resque Ex 需要在包含您的代码库的环境中运行