Commit Graph
29 Commits
Author SHA1 Message Date
Ilan Steemers 67180c1984 Initial tests 2015-06-24 15:29:16 +02:00
Ilan Steemers 9d84e8cf49 using PRE_SAVE instead of POST_SAVE signal for hook. 2015-06-24 15:28:47 +02:00
Ilan Steemers 7dea114b18 cleaned imports 2015-06-24 12:39:54 +02:00
Ilan Steemers a7ab7e9d71 cleaned imports 2015-06-24 12:38:37 +02:00
Ilan Steemers c91fd0f022 monitor now has a little color and columns 2015-06-24 11:44:47 +02:00
Ilan Steemers 0ed1da8f05 Refactoring to make testing more stable 2015-06-23 21:12:08 +02:00
Ilan Steemers 97a4b27f68 Added rudimentary terminal monitor 2015-06-23 20:54:23 +02:00
Ilan Steemers 54e518151e Reduced code for stats. Stat now uses Redis pubsub 2015-06-21 16:51:25 +02:00
Ilan Steemers 9f4e4d94e4 Added basic cluster stats
TODO add these to django admin
2015-06-20 15:00:40 +02:00
Ilan Steemers ed9883470d Separated Cluster and Sentinel into two classes. 2015-06-19 22:24:27 +02:00
Ilan Steemers 45e5187126 Updated README 2015-06-18 18:59:31 +02:00
Ilan Steemers e6cfdf6a1f Better exit strategy:
-Pusher is stopped
-Poison pills are put on the task queue
-Wait for workers to clear the queue and exit
-Poison pill is put in the result queue
-Main process exits when monitor has finished processing results
2015-06-18 17:55:52 +02:00
Ilan Steemers bed64c7313 Added re-submit function to Failed Task admin 2015-06-18 17:03:34 +02:00
Ilan Steemers 5adf92eb27 hooks now work
refactored task as dict instead of list for readability.
2015-06-18 15:23:21 +02:00
Ilan Steemers 90b5b0d6ab moved static methods to module functions
medic is now sentinel and runs in it's own process
sentinel shutdown procedure more stable
2015-06-18 14:10:48 +02:00
Ilan Steemers 2df5df48cb Merge remote-tracking branch 'origin/master' 2015-06-17 23:50:36 +02:00
Ilan Steemers 69837922b1 Task now accepts a hook function, that will be called with the finished task as the argument. 2015-06-17 23:50:17 +02:00
Ilan Steemers 85f971ae40 Added test task countdown 2015-06-17 23:49:14 +02:00
Ilan Steemers 62bfb7bdc1 Delete testq.py 2015-06-17 21:39:47 +02:00
Ilan Steemers 8b804b56f1 Delete views.py 2015-06-17 21:38:05 +02:00
Ilan Steemers 2e81ba2858 Added some config settings
Updated README
2015-06-17 19:14:20 +02:00
Ilan Steemers b28754de93 Added full package signing and compression through Django signing module and JsonPickle 2015-06-17 18:17:48 +02:00
Ilan Steemers e473665760 Added admin pages for failures and success.
SAVE_LIMIT can now be set to limit the amount of saved tasks results.
2015-06-17 15:32:54 +02:00
Ilan Steemers 727a4d560d migrations 2015-06-17 13:34:10 +02:00
Ilan Steemers c8d2927dd2 restructured app and added task signing 2015-06-17 13:33:46 +02:00
Ilan Steemers 093431e88d Lots of stuff
- changed to single monitor for success and failures
- result is now in django model
- started addings tests
2015-06-16 19:03:00 +02:00
Ilan Steemers f095c52e73 - Added logging with coloredlogs (for now)
- Added task model and admin
- Moved pusher into it's own process
2015-06-16 14:58:44 +02:00
Ilan Steemers 317101d821 this is better.
separate workers, failures and success monitors
2015-06-15 20:53:42 +02:00
Ilan Steemers 8c0a26e0b4 Testing basic layout 2015-06-15 16:02:50 +02:00