Commit Graph

59 Commits

Author SHA1 Message Date
Daniel Mason
19f21219f8 1.4.5 patch - formatting + composer replace 2019-08-28 10:06:52 +12:00
Daniel Mason
4e87677517 - Updated README to include supervisor configuration.
- Change logfile date format to `%Y-%m-%d %T`.
- Added return types to more functions.
2018-07-16 09:59:58 +12:00
Daniel Mason
f69330d637 Update Docs 2018-06-22 20:13:19 +12:00
Daniel Mason
493d6dc6d8 Added 48 hour TTL to worker:xxx:started keys to prevent db pollution 2018-05-30 08:25:02 +12:00
Daniel Mason
1b044f2b7d Passing pipelines 2018-05-25 20:52:20 +12:00
Daniel Mason
ae84530132 - Reformatted files to PSR2 standard
- Removed credis for native phpredis
- Tidied up some docs
- Setting up new travis.ci build
2018-05-25 19:26:54 +12:00
Chris Boulton
4dbdda6aa2 return false if the fork function is unavailable 2016-08-15 19:01:32 -07:00
Takuya Sato
9c20e44483 return false if json_encode() failed. 2015-08-26 10:26:48 +09:00
Dan Rahmel
44940e84bc Restored whitespace 2015-03-13 15:36:24 -07:00
Dan Rahmel
f29e09d68b Added remove_queue command from Resque 2015-03-13 14:49:30 -07:00
Chris Boulton
a8322cd4e7 Merge pull request #212 from chrisboulton/beforeEnqueue
Add beforeEnqueue hook
2015-02-04 10:56:54 -08:00
Chris Boulton
8007705221 return false when job creation is cancelled by beforeEnqueue 2015-02-02 12:29:26 -08:00
Chris Boulton
a95c24b32e add beforeEnqueue hook that allows the enqueue to be cancelled 2015-02-02 12:29:24 -08:00
Axel K.
6cda08de25 #218 Remove item from queue as well when args match 2014-11-10 15:38:58 +01:00
vincent zhao
bc9dac71ca Allows a callable to be passed to Resque::setBackend for setting Resque:: 2014-09-25 10:31:09 +10:00
Wedy Chainy
29e37784cd Alter dequeue - now accepting 'args' and "ID" arguments 2014-09-23 09:42:31 +10:00
Wedy Chainy
4a97c14628 dequeue 2014-09-22 16:17:16 +10:00
Iskandar Najmuddin
3b074a046a Revert file modes back to 644 2014-05-05 17:48:47 +00:00
Iskandar Najmuddin
506b769b90 Make parseDsn() method static, remove unused member vars 2014-05-05 15:08:00 +00:00
Iskandar Najmuddin
1abbad3f5e Improve comments and readability 2014-05-05 14:47:43 +00:00
Michael Alexander
f91352d810 Renamed references of token to id. 2013-11-18 10:02:03 +11:00
Michael Alexander
6d8cd501b7 Added token as an argument to the afterEnqueue callback 2013-11-12 13:11:48 +11:00
Chris Boulton
59f617e639 Merge pull request #63 from ruudk/blocking-list-pop
Basic support for blocking list pop
2013-06-12 01:09:11 -07:00
Aaron Bonner
f3dcc092d4 Add type to $queue param in size()'s docblock 2013-05-29 15:59:46 +01:00
Ruud Kamphuis
2794dd54a9 Merge branch 'blocking-list-pop' of github.com:ruudk/php-resque into blocking-list-pop
Conflicts:
	bin/resque
	lib/Resque.php
	lib/Resque/Job.php
2013-05-29 09:31:53 +02:00
Ruud Kamphuis
bfbff5e58e Unit tests pass 2013-05-29 09:29:24 +02:00
Ruud Kamphuis
86ae77811d Working blocking list pop :) 2013-05-29 09:17:06 +02:00
Ruud Kamphuis
b8f98eecd2 WIP 2013-05-29 09:14:18 +02:00
Ruud Kamphuis
15324ca410 Fixed bug 2013-05-29 09:14:17 +02:00
Ruud Kamphuis
4d5552867a Basic support for blocking list pop 2013-05-29 09:14:17 +02:00
Daniel Hunsaker
8d1a9a5564 Updated to match coding style.
Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-05-12 12:58:18 -06:00
Daniel Hunsaker
3798fa3ba6 Added enqueue failure detection
If a job fails to be enqueued, it would be useful to know it.  So now
Resque actually tells us whether the enqueue action was successful or
if it failed.  If your job ID comes back as FALSE, it didn't enqueue.

Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-05-09 16:27:50 -06:00
Ruud Kamphuis
c2c4d06f7b Working blocking list pop :) 2013-03-13 12:41:32 +01:00
Ruud Kamphuis
132531e1a2 WIP 2013-03-12 11:28:25 +01:00
Ruud Kamphuis
5687c8fe82 Merge branch 'master' of git://github.com/chrisboulton/php-resque into blocking-list-pop
Conflicts:
	lib/Resque.php
	lib/Resque/RedisCluster.php
	lib/Resque/Worker.php
2013-03-11 22:40:36 +01:00
Chris Boulton
6800fbe5ac fix compatibility with phpredis
* implement a fork helper method that closes the connection to redis before forking (instead of resetting after)
  to work around bugs with phpredis/socket fork handling
* phpredis does not automatically typecast to string, so worker name must be typecasted when registering
2013-01-13 02:59:06 +11:00
Chris Boulton
2ba15eb555 replace Redisent with Credis (also adds native phpredis support) 2013-01-12 23:37:38 +11:00
Chris Boulton
2f5b48930f make better use of composer across php-resque
* recommend php-resque be installed via Composer
* provide quick getting started steps
* move ./resque.php to bin/resque, make it available as a Composer bin
* have classes autoloaded via Composer (or some other means if not using Composer)
2013-01-12 22:40:26 +11:00
Chris Boulton
0549d6c88a update version to 1.2 2012-10-13 18:28:16 +11:00
Chris Boulton
c908109a74 Remove silly copyright line in docblock comments, update email address, remove copyright year because it is boring to maintain 2012-10-13 17:55:41 +11:00
Ruud Kamphuis
5eff86d3c3 Fixed bug 2012-09-10 10:23:18 +02:00
Ruud Kamphuis
41bf8c1c26 Basic support for blocking list pop 2012-08-24 16:51:03 +02:00
Chris Boulton
b0fbfa4f15 make the queue for an enqueued job available in the afterEnqueue event 2012-05-10 22:13:28 +10:00
Chaitanya Kuber
cc871c06ab fixed spelling error and removed debug code 2012-03-15 20:03:34 -05:00
Chaitanya Kuber
48a7febd88 Merge branch 'master' of https://github.com/chrisboulton/php-resque 2012-03-06 22:48:01 -06:00
Chris Boulton
0ad5903a85 Merge remote-tracking branch 'pedroarnal-master/master'
Conflicts:
	lib/Resque.php
2012-03-05 19:41:09 +11:00
Chris Boulton
ebe7665817 fix lost jobs when there is more than one worker process started by the same parent process 2012-03-05 19:21:43 +11:00
Chaitanya Kuber
951d9d37b5 updated method comments 2012-02-29 22:32:52 -06:00
pedroarnal
0ac835a630 Enabling use of unix sockets on Redis backend. 2012-01-25 00:46:34 +01:00
Salimane Adjao Moustapha
7a7cfbf2b9 fix comment to specify that is an array instead of an object in Resque::push 2011-12-16 10:32:28 +08:00