Ilan Steemers
4e38925cea
Adds timeout mechanism for workers
...
Workers now share a ctype with the sentinel to indicate if they are currently executing a task. This timer is incremented each guard loop until the worker resets it after finishing a job or until it reaches the TIMEOUT value and the worker is terminated by the sentinel.
2015-07-01 10:54:36 +02:00
Ilan Steemers
4ce44fe576
Reworked kwargs for Python 2.7 compatibility
2015-06-30 16:57:21 +02:00
Ilan Steemers
4096b35adf
Added schedule command
...
* improved schedule tests
* updated README
* bumped up to version 0.1.3
2015-06-30 16:38:08 +02:00
Ilan Steemers
482569b312
Rework - configuration now in class - better stop handling under heavy load. - scheduler test - better monitoring - better status reporting
2015-06-30 10:58:24 +02:00
Ilan Steemers
f9e3df627c
Cleaned up some code
2015-06-29 09:29:47 +02:00
Ilan Steemers
dffb85c991
fixed crash with badly signed packages and added redis ping
2015-06-28 18:56:10 +02:00
Ilan Steemers
9593ad9f1d
Added Recycling to workers
2015-06-28 14:27:43 +02:00
Ilan Steemers
b0e738d31b
Passing the redis connection around the cluster to reduce connections
2015-06-27 20:03:32 +02:00
Ilan Steemers
f82a3e75d6
Removed coloredlogs
2015-06-27 16:19:44 +02:00
Ilan Steemers
d8020f0c0b
Redis server now configurable with Q_REDIS. Moved constants to conf
2015-06-27 12:08:33 +02:00
Ilan Steemers
3b7682411c
Sentinel now has a start() function. Will still autostart on init, but can be overriden with start=False
2015-06-27 01:43:11 +02:00
Ilan Steemers
8c4f0110fb
Added default logger handler and made coloredlogs optional
2015-06-26 18:07:44 +02:00
Ilan Steemers
f08773f37d
Improved cluster test
2015-06-26 17:20:09 +02:00
Ilan Steemers
666bdc97dc
* updated README
...
* both func and hook check for callable.
2015-06-26 14:24:25 +02:00
Ilan Steemers
d06de5769b
added scheduled tasks with admin interface
2015-06-25 19:48:38 +02:00
Ilan Steemers
99a44dda45
simple test for monitor
2015-06-25 13:22:16 +02:00
Ilan Steemers
065f2dc5aa
Django's timezone is back since it can't conflict with JsonPickle anymore
2015-06-24 22:57:21 +02:00
Ilan Steemers
5068641de0
replaced JsonPickle with cPickle for signed packages
2015-06-24 21:57:23 +02:00
Ilan Steemers
d0880d06ac
neater monitor text
2015-06-24 19:56:39 +02:00
Ilan Steemers
2c9d53e6b2
fixes for Python 2
2015-06-24 17:45:01 +02:00
Ilan Steemers
67180c1984
Initial tests
2015-06-24 15:29:16 +02:00
Ilan Steemers
0ed1da8f05
Refactoring to make testing more stable
2015-06-23 21:12:08 +02:00