Ilan Steemers
83b12629ea
removed trailing period
2015-07-03 19:57:22 +02:00
Ilan Steemers
fb44f4f0bf
raises a redis exception
2015-07-03 18:31:04 +02:00
Ilan Steemers
29774b3afe
raises a redis exception
2015-07-03 18:30:22 +02:00
Ilan Steemers
891d017c00
Added STOPPING status to monitor
2015-07-03 17:32:46 +02:00
Ilan Steemers
e0a92d2b24
Monitor starts with pinging Redis.
2015-07-03 16:57:26 +02:00
Ilan Steemers
f7f3626a03
sets version 0.2.0
2015-07-03 15:35:49 +02:00
Ilan Steemers
27cfe5eb86
fixed relative import
2015-07-03 15:13:19 +02:00
Ilan Steemers
b113a52825
Restructured all the modules
...
The core module was becoming too large.
By splitting it in cluster, monitor and tasks it becomes more manageable. It also reflects the documentation structure.
2015-07-03 15:12:11 +02:00
Ilan Steemers
2c88b1aef6
superfluous import removed
2015-07-02 13:53:12 +02:00
Ilan Steemers
5399865f4e
Adds timeout and reincarnation test
...
Also found a bug because of this.
2015-07-02 12:10:18 +02:00
Ilan Steemers
cbd0ed5243
No need to increase timer on dead workers
2015-07-01 15:00:15 +02:00
Ilan Steemers
2397314a99
Cluster now differentiates between sudden death and timeouts of workers.
2015-07-01 14:58:09 +02:00
Ilan Steemers
1d92b13388
Upped version to 0.1.4
2015-07-01 13:39:05 +02:00
Ilan Steemers
d1930a3de1
Fixes Travis hang up
...
New admin test introduced a task in the queue which was picked up by the cluster on Travis. Switching cluster test to different list key should prevent this.
2015-07-01 12:52:47 +02:00
Ilan Steemers
ba525a9312
Fixes Travis error
...
added failing hook to tests
2015-07-01 12:42:13 +02:00
Ilan Steemers
50cc5b821b
Removed superfluous return
2015-07-01 12:30:36 +02:00
Ilan Steemers
b3702319c2
Added admin test for failure resubmission
2015-07-01 12:28:04 +02:00
Ilan Steemers
6853b17a7b
Improved admin test
2015-07-01 11:44:20 +02:00
Ilan Steemers
83c1601546
Fixes bug with resubmitting none args
2015-07-01 11:42:57 +02:00
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
8188893ff4
Schedule args and kwargs fields are now unlimited text fields.
2015-06-30 18:34:14 +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
c4b80c4b65
Removed old version id
2015-06-30 11:41:08 +02:00
Ilan Steemers
6ffd8452cf
New release 0.1.2
2015-06-30 11:14:41 +02:00
Ilan Steemers
dd56a8cfa4
Add unicode to models
2015-06-30 11:14:00 +02:00
Ilan Steemers
b0423a42d3
Fix import error on travis
2015-06-30 11:01:36 +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
d94b631e40
Limited hostname width in monitor
2015-06-29 11:36:30 +02:00
Ilan Steemers
f9e3df627c
Cleaned up some code
2015-06-29 09:29:47 +02:00
Ilan Steemers
9d36299f73
new bugfix release
2015-06-28 19:51:21 +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
218913e626
Default recycle to 500
2015-06-28 17:12:30 +02:00
Ilan Steemers
9593ad9f1d
Added Recycling to workers
2015-06-28 14:27:43 +02:00
Ilan Steemers
d0b950f9d6
Configuration is now through a dict.
2015-06-28 14:26:55 +02:00
Ilan Steemers
c3475c9278
Admin label is now settable
2015-06-28 14:25:42 +02:00
Ilan Steemers
9bd3b1fa40
renamed scheduled task result to 'last run'. Makes more sense
2015-06-27 21:54:09 +02:00
Ilan Steemers
7fd381319c
fixed relative import
2015-06-27 20:07:47 +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
888a2a8062
migration updated for kwargs and args
2015-06-27 16:22:33 +02:00
Ilan Steemers
338b96fe63
Added VERSION
2015-06-27 16:20:38 +02:00
Ilan Steemers
de03dd10d8
args and kwargs can be null in db
2015-06-27 16:20:14 +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
e2f7f1e5bf
added schedule to README
2015-06-25 20:30:13 +02:00
Ilan Steemers
d5d529f874
added schedule admin to admin test
2015-06-25 19:54:40 +02:00