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
493d6dc6d8
Added 48 hour TTL to worker:xxx:started keys to prevent db pollution
2018-05-30 08:25:02 +12:00
Daniel Mason
51fda513f4
Global reformat
2018-05-25 21:03:48 +12:00
Daniel Mason
1085ac2412
Trying to pass builds..
2018-05-25 20:24:00 +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
Sebastian Machuca
be19e12c31
Making the factory the default layer to construct jobs
2016-10-14 14:41:19 +11:00
Sebastian Machuca
df20186c37
Convert spaces to tabs
2016-10-13 14:45:02 +11:00
Sebastian Machuca
8f542e5035
Making the factory responsible to set the arguments and the queue
2016-10-12 19:22:31 +11:00
Sebastian Machuca
de22db6826
Making it compatible with PHP < 5.5
...
Making the factory receive the classname
2016-10-06 16:07:16 +11:00
Sebastian Machuca
7d2ce1bc8b
BIG-28720 Allowing to use a factory instead of manually instantite the Jobs
2016-10-06 12:54:41 +11:00
Bjoern Boschman
b3b1d408e5
removed all closing PHP tags
2016-03-08 12:19:05 +01:00
Matthew Turland
570e4a9e55
Corrected type in Resque_Job::$payload docblock
...
The docblock for the $payload property in the Resque_Job class is object, which is inconsistent with the array type used for the corresponding constructor parameter. Other usage of the $payload property, such as in updateStatus(), indicate that array seems to be correct.
2015-05-12 15:07:20 -05:00
Chris Boulton
2308c3ced4
update phpdoc
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
vincent zhao
006d7502d9
add an enqueued timestamp to the job payload
2014-08-08 10:25:40 +10:00
Chris Boulton
0327217907
call beforePerform before retrieving an instance of the job class
2014-06-26 19:07:52 +10: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
4d5552867a
Basic support for blocking list pop
2013-05-29 09:14:17 +02:00
Chris Boulton
37cdec8e11
Merge pull request #107 from danhunsaker/feature-queue-failure
...
Added enqueue failure detection
2013-05-28 18:19:01 -07: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
CyrilMazur
e4ea683def
Update Job.php
...
Previous code was encapsulating $args in an additional array, and thus breaking the new job $args.
2013-04-16 13:07:03 -03: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
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
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
41bf8c1c26
Basic support for blocking list pop
2012-08-24 16:51:03 +02:00
Chaitanya Kuber
76c06a1349
now setting the queue name onto the job instance
2012-03-22 12:27:43 +08:00
Chaitanya Kuber
ef859b6fc5
updated method comments
2012-03-01 19:21:06 -06:00
Salimane Adjao Moustapha
458fd6488b
replace is_object with is_array when reserving jobs since Resque::pop actually returns an array instead of an object
2011-12-08 11:25:15 +08:00
Salimane Adjao Moustapha
68df9854a6
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)
2011-12-07 17:22:59 +08:00
warezthebeef
0cfb2d2019
Fixed job arguments being wiped by array_shift
2011-08-19 12:33:05 +12:00
warezthebeef
f7eac3b5e7
Added wrapping array() to args to improve compatibility with ruby resque
2011-07-21 15:49:18 +12:00
chris.boulton
77f33c319b
Move trigger call for onFailure in to ->fail(), so it can catch PHP errors
2011-03-27 19:18:16 +11:00
chris.boulton
6f43fcfed8
Add a plugin/event/hook system
2011-03-27 18:42:46 +11:00
David Abdemoulaie
65b79b7f4a
Fixes job status updates - #1
2010-12-10 23:31:23 -06:00
Jaisen Mathai
f20ab2cac5
Fixing a typo where args was not being set properly.
...
Fixing some typos in the README and added troubleshooting.
2010-10-01 00:55:03 -07:00
Chris Boulton
5f64653149
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
2010-08-01 15:23:41 +10:00
Chris Boulton
9ce7cfb370
Change all require statements to include the full path.
2010-04-20 10:59:06 +10:00
Chris Boulton
6e6d7ad859
Add setUp and tearDown callbacks for jobs
2010-04-20 10:02:34 +10:00
Chris Boulton
c5396f4e86
Change arguments for jobs to an array instead of an object. Also change other json encoded items to decode to an array rather than objects
2010-04-19 10:35:50 +10:00
Chris Boulton
cb4205d508
Initial commit
2010-04-18 23:58:43 +10:00