Commit Graph

38 Commits

Author SHA1 Message Date
Ilan
de5d0f2725 Adds a 'minutes' option to the scheduler 2015-08-05 20:30:29 +02:00
Ilan
ed019634d2 Sets pickle protocol to highest
* package signing protocol is now set to highest. Tests show this to be about a 35% speed increase and there is increased probability of correctly pickling complex objects.

* also upped the protocol on the result database picklefield.
2015-08-01 11:41:45 +02:00
Ilan
d7ecaee18d Added tests for failures filtering
fixed a bug
2015-07-19 15:21:06 +02:00
Ilan
52e72fde1c Adds failed tasks filtering to groups 2015-07-19 15:15:57 +02:00
Ilan
72f913ab97 switching hook to post_save
This might delay a hook slightly, but it makes more sense if you want to perform hook actions on groups since Pre_save the latest member of the group won't be available yet.
2015-07-19 14:29:40 +02:00
Ilan
e75fbecda8 fixed typo and added group tests 2015-07-19 13:56:16 +02:00
Ilan
ff102630f7 adds count_group() and delete_group() 2015-07-19 13:19:46 +02:00
Ilan
9f9c94c983 decoding values_list on a picklefield turns out to be 10 times faster than using list_comprehension 2015-07-19 12:26:10 +02:00
Ilan
f65c05624d Schedule name and task group should have same max length 2015-07-18 22:32:32 +02:00
Ilan
05d6ecb7a2 renamed get_group_result to get_result_group
I think I fumbled a commit
2015-07-18 18:55:47 +02:00
Ilan
c127604f10 Adds task groups
* task now takes an optional keyword `group`
* added result_group()  and fetch_group()
* added group column to Success admin
* group column in searchable
* added `name` field to Schedules
* Scheduled tasks take schedule name as group
2015-07-18 17:20:50 +02:00
Ilan Steemers
fd168b3202 Added stopped column in admin and sorting models on stopped field. 2015-07-10 12:05:00 +02:00
Ilan Steemers
5b3c8440ca Schedule admin should show name instead of id in task link 2015-07-09 09:12:26 +02:00
Ilan Steemers
d2515d99e0 fixed regression of task link in schedule admin 2015-07-08 22:41:29 +02:00
Ilan Steemers
44c8edb0a2 Keep task length on schedule for backward compatibility
Migrations on existing data would fail because of the old names being longer than the uuid. Keeping the field length at 100 will keep it compatible with existing  data.

Removed the squashed migrations cause this will cause dependency problems on existing installations. Every new migration will list the squashed migrations as a dependency. Not a problem for new installations, but will crash on exisitng ones.
2015-07-08 15:40:38 +02:00
Ilan Steemers
d9d0e7db73 consistent task name formatting 2015-07-08 14:27:51 +02:00
Ilan Steemers
f8708cfd73 Task now uses a UUID4 instead of a LUID 2015-07-08 13:33:03 +02:00
Ilan Steemers
e7d2dd0309 Missed a return on exception 2015-07-05 21:09:05 +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
50cc5b821b Removed superfluous return 2015-07-01 12:30: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
dd56a8cfa4 Add unicode to models 2015-06-30 11:14:00 +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
de03dd10d8 args and kwargs can be null in db 2015-06-27 16:20:14 +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
d06de5769b added scheduled tasks with admin interface 2015-06-25 19:48:38 +02:00
Ilan Steemers
47de658be5 allow Null results 2015-06-24 22:13:29 +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
0ed1da8f05 Refactoring to make testing more stable 2015-06-23 21:12:08 +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
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
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
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
8c0a26e0b4 Testing basic layout 2015-06-15 16:02:50 +02:00