##Changelog
###v4.0.2 [2013-11-06]
- [fix] Uses
App::usesin CakeResqueBootstrap
###v4.0.1 [2013-10-29]
- [new] Add setting to set a custom dir for the workers PID files
###v4.0.0 [2013-10-25]
- [new] Fix #20: Ease personalized plugin configuration [@bar]
- [fix] Fix #33: Don't use
sudowhen the current user is already the target user - [fix] Default process owner is the one running the webserver, and not the one owning the file
- [fix] Fix #25: Workers now works with exotic directory structure
###v3.3.8 [2013-08-22]
- [fix] Handle custom cake
appfolder name
###v3.3.7 [2013-07-07]
- [new] Add
resetto reset CakeResque internal state - [removed] Remove
--debugoption, in favor of--verbose - [fix] Some text formatting and other minor fixes
###v3.3.6 [2013-05-18]
- [new]
restartnow takes into account the workers your stopped and started just before. - [new] More reliable worker detection on
startandstartscheduler - [fix] Upgrade CakeResqueBootstrap file with Cake2 version
- [new] Add unit tests. Code coverage can be tracked on coveralls.io
NOTE: Workers status are stocked in a different format. Please stop all your workers first before updating.
###v3.3.5 [2013-05-07]
- [fix] Call kill command using an absolute path [bar]
###v3.3.4 [2013-04-30]
- [fix] Stop worker gracefully by sending it a SIGNAL, instead of killing the process
###v3.3.3 [2013-04-24]
- [fix] Handle setup with exotic app folder name
###v3.3.2 [2013-04-17]
- [new] Add
--debug
###v3.3.1 [2013-04-14]
- [new] Add
--verboseoption when starting worker. Default log mode downgraded from verbose to normal.
###v3.3.0 [2013-04-13]
- [new] Add
clearcommand to clear queues' jobs
###v3.2.4 [2013-02-27]
- [fix] Namespace was changed in ResqueScheduler
###v3.2.3 [2013-02-12]
- [fix] Invalid jobs number for queues stats
- [fix] Add example of using custom user when starting worker
###v3.2.2 [2013-02-10]
- [fix] 100% test code coverage for existing tests
###v3.1.1 [2013-02-07]
- [change] More accurate error message when starting workers fail
- [fix] Fix error while loading the Resque Job Creator class
###v3.1.0 [2013-02-06]
- [new] Add tests & refactor some class to make them more testable
- [new] Use Travis CI
- [change] Update composer to make plugin installable as a CakePHP Plugin
###v3.0.4 [2013-02-01]
- [new] Display total number of scheduled jobs in stats
###v3.0.3 [2013-01-30]
- [fix] Load ResqueScheduler library even if scheduler is disabled to prevent class not found
###v3.0.2 [2013-01-30]
- [fix] Load missing resque library files
- [fix] More accurate detection of workers status
- [change] Reove redundant fiels include
###v3.0.1 [2013-01-30]
- [change] Rename default log files for consistency
###v3.0.0 [2013-01-30]
- [new] Add
enqueueAt()andenqueueIn()for scheduled jobs - [new] Display pending jobs count for each queues in
stats - [new] Display message when a queue is not monitored by a worker, in
stats - [new] Display error message when resque library files are not found, instead of fatal error
Scheduled Jobs are disabled by default. Activate them by setting
CakeResque.Scheduler.enabledtotruein the bootstrap file. Runcomposer updateto update your dependencies See upgrade noteshttp://www.kamisama.me/?p=495)
###v2.2.1 [2012-10-24]
- [new] Add .pot file for i18n. Help for translation are welcomed.
###v2.2.0 [2012-10-23]
- [fix] Tracking job not working properly
- [new] Display failed job details using
trackwhen job status is fail
Require php-resque-ex 1.0.14. Update dependencies with
composer update
###v2.1.0 [2012-10-16]
- [new] Add
trackcommand to track a job status
A new
CakeResque.Job.tracksetting has been added to the bootstrap file. It's the master value to enable the job tracking status. You can also enable/disable tracking on a per-job basis, by passingtrue/falseas fourth argument when queueing job viaCakeResque::enqueue().Job status tracking is disabled by default. Job status is only kept for 24 hours. Unknown will be returned
- when job ID is invalid,
- when job status is expired,
- or when job status tracking is disabled.
###v2.0.0 [2012-10-14]
- [new] Add
pausecommand to pause one or all worker - [new] Add
resumecommand to resume one or all paused worker - [new] Add
cleanupcommand to immediately terminate a worker's job - [change] Add more documentation
###v1.2.6 [2012-10-08]
- [new] Use your own php-resque library
###v1.2.5 [2012-10-03]
- [fix] Strict Error warning when checking for existing user
###v1.2.4 [2012-10-01]
- [new] Log Job ID for DebugKit resque panel
###v1.2.3 [2012-10-01]
- [fix] Fix composer dependencies
###v1.2.2 [2012-09-27]
- [new] Enqueuing a job return job id
###v1.2.1 [2012-09-10]
- [Fix] Log correct method name when processing job
###v1.2.0 [2012-09-08]
- [new] Add CakeResque proxy to enable jobs logging
Refactor all your
Resque::enqueue()call toCakeResque::enqueue(), to enable logging. Install DebugKitEx to view jobs log via DebugKit.Resque::enqueue()still works.
###v1.1.0 [2012-08-29]
- [new] Add
CakeResque.Redis.databaseandCakeResque.Redis.namespacesettings in bootstrap
database to select the redis database (redis database are integer) namespace to set the keys namespace (key prefix) Add these new 2 keys to your bootstrap when you update
- [change] Remove CakeResqueComponent
Remove it from $components in your AppController
###v.1.0.0 [2012-08-27]
- [fix] Restart was ignoring workers when they have the same arguments
- [fix] Restart was duplicating workers
- [fix] Various fixes and formatting (@josegonzalez)
- [fix] Starting a worker with
startnow return if the worker was successfully created - [new] Overwrite bootstrap in app/Lib (@josegonzalez)
- [new] Pass additional environement variable to Resque (@josegonzalez)
- [new] Use Composer to manage dependencies
- [new] Use php-resque-ex instead of php-resque
- [new]
--logoption added tostart, to specify the path of the log file. Each worker can have its own log - [new] New
--log-handlerandlog-handler-targetoptions forstart, to use another log engine - [new]
stopnow stop individual worker from a list. Use--allflag to stop all workers - [new]
tailcommand display a list of logs to monitor - [new] All options are validated
- [new] Add a Resque_Job_Creator class in bootstrap, to handle all jobs creation
- [change] Remove
--tailoptions onstart, prefer thetailcommand - [change] Format code to CakePHP coding standard
- [change] Documentation removed from README, refer to website
- [change] Rename all files and classes to the plugin name : CakeResque
- [ui] Various fixes and formatting
###v.0.81 [2012-05-09]
- [fix] Give the same name for workers count variable in all files
###v.0.8 [2012-05-08]
- [new]
LoadCommand to start a batch of queues defined in you bootstrap, at once
###v.0.72 [2012-05-07]
- [fix] Fallback to Redisent when PhpRedis is not installed was broken
###v.0.71 [2012-03-31]
- [fix] Shell outside Plugin folder where not found
###v.0.7 [2012-03-31]
- [fix] Use user defined redis server configuration for resque
###v.0.6 [2012-03-14]
- Removed jobs command
- Added CakePHP plugin syntax (Plugin.Model) when referencing classname: job classes doesn't have to be located in
app/Console/Commandanymore, you can leave them inPluginName/Console/Command, as long as you extends theAppShellclass, that contains aperformmethod - Updated php-resque to latest version
- Added Redisent support: php-resque fallback to Redisent if phpRedis is not installed
- Enabled namespace for all resque keys in redis
- Changed cli
enqueuecommand to accept the same arguments as the php one
###v.0.5 [2012-02-19]
restartnow restore all workers with their options