mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-24 09:15:15 +00:00
1.4.5 patch - formatting + composer replace
This commit is contained in:
parent
5a94c021da
commit
19f21219f8
@ -1,3 +1,7 @@
|
||||
## 1.4.5 (2019-08-28)
|
||||
- Added 'replaced' composer tag.
|
||||
- Formatting changes.
|
||||
|
||||
## 1.4.4 (2019-06-02)
|
||||
- Updated tests to run on GitLab CI.
|
||||
- Can now run tests locally using `gitlab-runner exec docker test:7.0`
|
||||
|
@ -1,4 +1,4 @@
|
||||
php-resque: PHP Resque Worker (and Enqueue) [![Build Status](https://travis-ci.org/iDanoo/php-resque.svg?branch=master)](https://travis-ci.org/iDanoo/php-resque)
|
||||
php-resque: PHP Resque Worker (and Enqueue)
|
||||
===========================================
|
||||
|
||||
Resque is a Redis-backed library for creating background jobs, placing
|
||||
|
@ -1,7 +1,11 @@
|
||||
{
|
||||
"name": "idanoo/php-resque",
|
||||
"version": "1.4.4",
|
||||
"version": "1.4.5",
|
||||
"type": "library",
|
||||
"replace": {
|
||||
"chrisboulton/php-resque": "*",
|
||||
"danhunsaker/php-resque": "*"
|
||||
},
|
||||
"description": "Redis backed library for creating background jobs and processing them later. Based on resque for Ruby. Originally forked from chrisboulton/php-resque.",
|
||||
"keywords": ["job", "background", "redis", "resque"],
|
||||
"homepage": "http://www.github.com/idanoo/php-resque/",
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
class Resque
|
||||
{
|
||||
const VERSION = '1.4.3';
|
||||
const VERSION = '1.4.5';
|
||||
|
||||
const DEFAULT_INTERVAL = 5;
|
||||
|
||||
|
@ -19,8 +19,8 @@ class Resque_Failure
|
||||
* Create a new failed job on the backend.
|
||||
*
|
||||
* @param array $payload The contents of the job that has just failed.
|
||||
* @param \Exception $exception The exception generated when the job failed to run.
|
||||
* @param \Resque_Worker $worker Instance of Resque_Worker that was running this job when it failed.
|
||||
* @param Exception $exception The exception generated when the job failed to run.
|
||||
* @param Resque_Worker $worker Instance of Resque_Worker that was running this job when it failed.
|
||||
* @param string $queue The name of the queue that this job was fetched from.
|
||||
*/
|
||||
public static function create($payload, Exception $exception, Resque_Worker $worker, $queue)
|
||||
|
@ -57,7 +57,7 @@ class Resque_Job
|
||||
* @param string $id Unique identifier for tracking the job. Generated if not supplied.
|
||||
*
|
||||
* @return string
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public static function create($queue, $class, $args = null, $monitor = false, $id = null)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ class Resque_Job_Factory implements Resque_Job_FactoryInterface
|
||||
* @param array $args
|
||||
* @param $queue
|
||||
* @return Resque_JobInterface
|
||||
* @throws \Resque_Exception
|
||||
* @throws Resque_Exception
|
||||
*/
|
||||
public function create($className, $args, $queue)
|
||||
{
|
||||
|
@ -45,11 +45,11 @@ class Resque_Log extends Psr\Log\AbstractLogger
|
||||
if (array_search($level, $logLevels) <= array_search($this->logLevel, $logLevels)) {
|
||||
fwrite(
|
||||
STDOUT,
|
||||
'[' . $level . '][' . strftime('%Y-%m-%d %T') . '] ' . $this->interpolate($message, $context) . PHP_EOL
|
||||
'[' . $level . '][' . strftime('%Y-%m-%d %T') . '] ' .
|
||||
$this->interpolate($message, $context) . PHP_EOL
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -185,7 +185,7 @@ class Resque_Redis
|
||||
// Check the URI scheme
|
||||
$validSchemes = ['redis', 'tcp'];
|
||||
if (isset($parts['scheme']) && !in_array($parts['scheme'], $validSchemes)) {
|
||||
throw new \InvalidArgumentException("Invalid DSN. Supported schemes are " . implode(', ', $validSchemes));
|
||||
throw new InvalidArgumentException("Invalid DSN. Supported schemes are " . implode(', ', $validSchemes));
|
||||
}
|
||||
|
||||
// Allow simple 'hostname' format, which `parse_url` treats as a path, not host.
|
||||
|
@ -290,11 +290,11 @@ class Resque_Worker
|
||||
* when searching for jobs.
|
||||
*
|
||||
* If * is found in the list of queues, every queue will be searched in
|
||||
* alphabetic order. (@see $fetch)
|
||||
*
|
||||
* @param boolean $fetch If true, and the queue is set to *, will fetch
|
||||
* alphabetic order. (@param boolean $fetch If true, and the queue is set to *, will fetch
|
||||
* all queue names from redis.
|
||||
* @return array Array of associated queues.
|
||||
* @see $fetch)
|
||||
*
|
||||
*/
|
||||
public function queues($fetch = true)
|
||||
{
|
||||
|
@ -11,7 +11,7 @@
|
||||
class Resque_Tests_JobStatusTest extends Resque_Tests_TestCase
|
||||
{
|
||||
/**
|
||||
* @var \Resque_Worker
|
||||
* @var Resque_Worker
|
||||
*/
|
||||
protected $worker;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user