Commit Graph

54 Commits

Author SHA1 Message Date
6232aff129 Add gitlab CI file 2018-10-13 12:53:14 +13:00
9a97a29aa3 Re-added disabled test 2018-10-13 12:45:53 +13:00
Daniel Mason
bd0a0c2dc8 Readd Credis 2018-05-30 19:05:13 +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
14c0e26559 Lets get all tests working first 2018-05-25 21:00:53 +12:00
Daniel Mason
1b044f2b7d Passing pipelines 2018-05-25 20:52:20 +12:00
Daniel Mason
1085ac2412 Trying to pass builds.. 2018-05-25 20:24:00 +12:00
Daniel Mason
44413588f4 basic redis tests passing 2018-05-25 20:11:17 +12:00
Daniel Mason
c862009505 Enable redis server in travis for testing 2018-05-25 19:53:55 +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
8113e624c4 use a mock to test correct redis exceptions are surfaced 2016-10-15 01:50:45 -07:00
Chris Boulton
81cb92b964 throw Resque_RedisException whenever an errror connecting/talking to redis occurs 2016-10-14 15:03:17 -07: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
Magnus Persson
5aed917f72 Resolves chrisboulton/php-resque#145 2015-03-11 23:41:12 +01:00
Chris Boulton
a8322cd4e7 Merge pull request #212 from chrisboulton/beforeEnqueue
Add beforeEnqueue hook
2015-02-04 10:56:54 -08:00
Chris Boulton
0c39e2ca7a ensure false is returned when DontCreate is thrown 2015-02-02 12:30:40 -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.
226ec33bb0 Test for asserting that correct items get dequeued when args are provided 2014-11-10 15:33:42 +01: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
76412df8fd Fix return array format of bogusDsnStringProvider 2014-05-05 15:30:36 +00:00
Iskandar Najmuddin
506b769b90 Make parseDsn() method static, remove unused member vars 2014-05-05 15:08:00 +00:00
Iskandar Najmuddin
d1d2b3b354 Test for 'false' database value when not found in DSN 2014-05-05 14:55:01 +00:00
Iskandar Najmuddin
1abbad3f5e Improve comments and readability 2014-05-05 14:47:43 +00:00
Iskandar Najmuddin
ad33efbc67 Improve Resque_Redis DSN parsing.
- Allow for DSN URIs to work as expected.
- Backward-compatible with simple 'host:port' format.
- Does not parse DSNs provided in array format for Credis_Cluster.
2014-05-05 13:02:16 +00:00
Rockstar04
726e58a297 Added basic logging class for a fallback
Corrected unit tests for new code

Add partial unit coverage for logging class

Add newline to logTest file
2013-06-25 12:01:50 -07:00
Ruud Kamphuis
f379d3a36d Fixed unit test 2013-05-29 09:17:06 +02:00
Ruud Kamphuis
86ae77811d Working blocking list pop :) 2013-05-29 09:17:06 +02:00
Ruud Kamphuis
e541fa9b70 Added test for blpop 2013-05-29 09:14:17 +02:00
Chris Boulton
b31830c0bf when testing job recreation, compare the results of ->getArguments() 2013-05-12 15:40:35 +10:00
Chris Boulton
2ba15eb555 replace Redisent with Credis (also adds native phpredis support) 2013-01-12 23:37:38 +11:00
Chris Boulton
8d6da21473 restructure tests, use composer to autoload test requirements 2013-01-12 22:01:13 +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
Chris Boulton
3188265655 Merge pull request #52 from ebernhardson/fix-stopListening
Resque_Event::stopListening does not remove the listener
2012-05-03 21:00:18 -07:00
Chris Boulton
e54c7ca99a only remove pid file during tests if exists 2012-04-19 22:39:55 +10:00
ebernhardson
010384b296 unit test to verify fix of Resque_Event::stopListening 2012-04-04 18:27:08 -07:00
Chris Boulton
e6464f4c79 Require Redisent/Redis separately 2012-03-05 20:21:12 +11:00
Hélio Costa e Silva
016a7a13fd Added support of Redis prefix (namespaces) 2011-11-22 14:55:40 -02:00
Chris Boulton
700af834b4 Unit tests should not be directly accessing payload[args] now that we have getArguments() 2011-09-16 15:30:36 +10:00
chris.boulton
6f43fcfed8 Add a plugin/event/hook system 2011-03-27 18:42:46 +11:00
David Abdemoulaie
59e7b83892 Addresses warning that posix_kill takes long not string 2010-12-14 23:55:33 -06:00
David Abdemoulaie
2ae54583f0 Fixes unit test reliability
- redis-server is killed only from parent process, not from a worker
- sleeps for half a second after starting server
2010-12-14 23:35:18 -06: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
6e6d7ad859 Add setUp and tearDown callbacks for jobs 2010-04-20 10:02:34 +10:00