php-resque/CHANGELOG.md

124 lines
6.7 KiB
Markdown
Raw Normal View History

## 2.0.0 (2021-02-19)
- Moved to PSR-4
- Namespaced codebase
- Added more comments throughout
## 1.4.7 (2020-04-11)
- Update PHPUnit to 9
- Start adding return types
## 1.4.6 (2020-01-10)
- Switched IF Statement order to prevent excess calls to redis.
## 1.4.5 (2019-08-28)
- Added 'replaced' composer tag.
- Formatting changes.
2019-06-02 10:21:42 +00:00
## 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.3 (2018-07-16)
- Updated README to include supervisor configuration.
- Change logfile date format to `%Y-%m-%d %T`.
- Added return types to more functions.
2018-05-30 07:05:13 +00:00
## 1.4.2 (2018-05-30)
- Reimplemented credis due to issues with Redis: Connection Closed.
2018-06-22 08:13:16 +00:00
- Updated Docs.
2018-05-30 07:05:13 +00:00
## 1.4.1 (2018-05-29)
- Updated travis builds to run on PHP 7.0, 7.1 and 7.2.
- Added ability to specify multiple log levels. [DEBUG/INFO/NOTICE/WARNING/ERROR/CRITICAL/ALERT/EMERGENCY]
- Default `LOGLEVEL` is now `WARNING`.
- Removed VERBOSE / VVERBOSE flags and always output timestamp in logs.
- Added 48 hour TTL to the worker started timestamp to prevent db pollution on server termination.
## 1.4 (2018-05-25)
- Forked from chrisboulton/php-resque.
2018-05-30 07:05:13 +00:00
- Replaced credis in favour of phpredis.
- Reformatted codebase to be PSR2 compliant.
## 1.3 (2013)
2013-01-12 11:54:42 +00:00
**Note:** This release introduces backwards incompatible changes with all previous versions of php-resque. Please see below for details.
### Redisent (Redis Library) Replaced with Credis
Redisent has always been the Redis backend for php-resque because of its lightweight nature. Unfortunately, Redisent is largely unmaintained.
[Credis](https://github.com/colinmollenhour/credis) is a fork of Redisent, which among other improvements will automatically use the [phpredis](https://github.com/nicolasff/phpredis) native PHP extension if it is available. (you want this for speed, trust me)
php-resque now utilizes Credis for all Redis based operations. Credis automatically required and installed as a Composer dependency.
2013-01-12 11:54:42 +00:00
### Composer Support
Composer support has been improved and is now the recommended method for including php-resque in your project. Details on Composer support can be found in the Getting Started section of the readme.
2014-06-26 09:19:04 +00:00
### Improved DSN Support
Changes by iskandar introduce improved support for using DSNs to connect to Redis. You can now utilize the following formatted strings for the REDIS_BACKEND environment variable to connect:
* `host`
* `host:port`
* `redis://host:port`
* `redis://host:port/db`
* `redis://user:pass@host:port/` (username is required but will be ignored)
* `tcp://user:pass@host:port/` (username is required but will be ignored)
2013-01-12 11:54:42 +00:00
### Other Improvements/Changes
* **COMPATIBILITY BREAKING**: The bundled worker manager `resque.php` has been moved to `bin/resque`, and is available as `vendor/bin/resque` when php-resque is installed as a Composer package.
* Restructure tests and test bootstrapping. Autoload tests via Composer (install test dependencies with `composer install --dev`)
* Add `SETEX` to list of commands which supply a key as the first argument in Redisent (danhunsaker)
* Fix an issue where a lost connection to Redis could cause an infinite loop (atorres757)
* Add a helper method to `Resque_Redis` to remove the namespace applied to Redis keys (tonypiper)
2014-06-26 09:09:31 +00:00
* Call beforePerform hook before retrieivng an instance of the job class (allows beforePerform to cancel a job with DontPerform before initialising your application)
2014-09-18 13:20:45 +00:00
* Add `beforeEnqueue` hook, called before a job is placed on a queue
2013-01-12 11:54:42 +00:00
2012-10-13 06:52:09 +00:00
## 1.2 (2012-10-13) ##
**Note:** This release is largely backwards compatible with php-resque 1.1. The next release will introduce backwards incompatible changes (moving from Redisent to Credis), and will drop compatibility with PHP 5.2.
* Allow alternate redis database to be selected when calling setBackend by supplying a second argument (patrickbajao)
* Use `require_once` when including php-resque after the app has been included in the sample resque.php to prevent include conflicts (andrewjshults)
2011-09-24 05:42:28 +00:00
* Wrap job arguments in an array to improve compatibility with ruby resque (warezthebeef)
* Fix a bug where the worker would spin out of control taking the server with it, if the redis connection was interrupted even briefly. Use SIGPIPE to trap this scenario cleanly. (d11wtq)
2012-03-05 08:35:56 +00:00
* Added support of Redis prefix (namespaces) (hlegius)
* When reserving jobs, check if the payload received from popping a queue is a valid object (fix bug whereby jobs are reserved based on an erroneous payload) (salimane)
* Re-enable autoload for class_exists in Job.php (humancopy)
* Fix lost jobs when there is more than one worker process started by the same parent process (salimane)
* Move include for resque before APP_INCLUDE is loaded in, so that way resque is available for the app
* Avoid working with dirty worker IDs (salimane)
2012-10-13 06:52:09 +00:00
* Allow UNIX socket to be passed to Resque when connecting to Redis (pedroarnal)
* Fix typographical errors in PHP docblocks (chaitanyakuber)
* Set the queue name on job instances when jobs are executed (chaitanyakuber)
* Fix and add tests for Resque_Event::stopListening (ebernhardson)
* Documentation cleanup (maetl)
* Pass queue name to afterEvent callback
* Only declare RedisException if it doesn't already exist (Matt Heath)
* Add support for Composer
* Fix missing and incorrect paths for Resque and \Resque\Job\Status classes in demo (jjfrey)
2012-10-13 06:52:09 +00:00
* Disable autoload for the RedisException class_exists call (scragg0x)
2013-01-12 11:54:42 +00:00
* General tidy up of comments and files/folders
2011-03-27 08:19:30 +00:00
## 1.1 (2011-03-27) ##
* Update Redisent library for Redis 2.2 compatibility. Redis 2.2 is now required. (thedotedge)
* Trim output of `ps` to remove any prepended whitespace (KevBurnsJr)
* Use `getenv` instead of `$_ENV` for better portability across PHP configurations (hobodave)
* Add support for sub-second queue check intervals (KevBurnsJr)
* Ability to specify a cluster/multiple redis servers and consistent hash between them (dceballos)
* Change arguments for jobs to be an array as they're easier to work with in PHP.
* Implement ability to have setUp and tearDown methods for jobs, called before and after every single run.
2010-08-01 05:07:14 +00:00
* Fix `APP_INCLUDE` environment variable not loading correctly.
* Jobs are no longer defined as static methods, and classes are instantiated first. This change is NOT backwards compatible and requires job classes are updated.
* Job arguments are passed to the job class when it is instantiated, and are accessible by $this->args. This change will break existing job classes that rely on arguments that have not been updated.
2011-03-27 05:02:28 +00:00
* Bundle sample script for managing php-resque instances using monit
* Fix undefined variable `$child` when exiting on non-forking operating systems
* Add `PIDFILE` environment variable to write out a PID for single running workers
2010-04-18 13:58:43 +00:00
## 1.0 (2010-04-18) ##
* Initial release