mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Change job classes to be instantiated rather than calling methods statically. This obviously makes it easier for state information to be destroyed after a job runs. This change is NOT backwards compatible and requests job classes be rewritten. Jobs also no longer receive arguments in the perform/setUp/tearDown methods but instead are passed as a $args variable to the instantiated job
This commit is contained in:
parent
5dc24ebbe4
commit
5f64653149
5 changed files with 33 additions and 33 deletions
|
@ -6,6 +6,12 @@ and after every single run.
|
|||
* Ability to specify a cluster/multiple redis servers and consistent hash
|
||||
between them (Thanks dceballos)
|
||||
* 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.
|
||||
|
||||
## 1.0 (2010-04-18) ##
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue