Commit Graph
52 Commits
Author SHA1 Message Date
Jake Bell dc65f5e1de Replacing ugettext_ functions with gettext_ for Django 3 2020-01-07 15:57:37 -06:00
Ilan Steemers 4076795dc3 truncate error description in admin
Also removes old conditional imports
2018-08-13 18:50:35 +02:00
Eagllus 904daeeddc Fix urls being escaped by admin 2018-01-29 08:45:02 +01:00
Adam Chidlow bebe1ba64f Django 2.0 compatibility
- django.core.urlresolvers -> django.urls
- fix major/minor version detection
2017-11-01 18:23:14 +08:00
Gaël Chardon 3d2099f48c Use 32 bits integer for repeat field instead of small integer (16 bits) to avoid overflow with frequent scheduled tasks 2017-10-09 11:30:47 +02:00
Ilan Steemers 8f270a5b97 Allows for blank Schedule names in the admin 2016-02-24 11:27:16 +01:00
Ilan Steemers 6dcead7310 Adds task chains 2015-10-17 12:13:29 +02:00
Ilan Steemers 913edcb3da moves hook signal in separate module
By moving signals in their own module, we can now follow Django guidelines and register signals on app.ready.
2015-10-05 13:46:47 +02:00
Ilan Steemers 061775b3bb Adds group commands to task instances
* adds task.group_result()
* adds task.group_count()
* adds task.group_delete()
2015-09-16 15:47:39 +02:00
Ilan Steemers 5450e59119 Adds name, function and task id to orm queue admin 2015-09-15 16:49:22 +02:00
Ilan Steemers 2bffcf554b Django ORM broker 2015-09-14 13:24:43 +02:00
Ilan Steemers 2078080945 determines decode with django version 2015-09-07 20:38:13 +02:00
Ilan Steemers e899b93c3f determines decode with django version 2015-09-07 20:35:51 +02:00
Ilan Steemers f4f8af1382 Fixes backward compatibility problems with django-picklefield 2015-09-07 20:24:21 +02:00
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