Commit Graph
120 Commits
Author SHA1 Message Date
Ilan Steemers dfd36e1b39 bumping to version 0.3.2 2015-07-09 20:30:02 +02:00
Ilan Steemers e62fd1ee70 Fixes #7
* added a synchronous cluster simulation

* added a test for the sync function

* moved signing into its own module

* refactored imports to solve circular import problems stemming from the task module pretending to be a cluster

* added documentation for the new sync option
2015-07-09 20:16:21 +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 d375b60732 Update __init__.py
Bumping to version 0.3.1
2015-07-08 22:48:39 +02:00
Ilan Steemers 1375cece72 Update __init__.py
Bumping to version 0.3.1
2015-07-08 22:48:25 +02:00
Ilan Steemers d2515d99e0 fixed regression of task link in schedule admin 2015-07-08 22:41:29 +02:00
Ilan Steemers 0413a2e65a refresh_from_db is 1.8 only 2015-07-08 21:06:32 +02:00
Ilan Steemers 0a8196838a Removed security middleware from test for Django 1.7 2015-07-08 21:02:00 +02:00
Ilan Steemers 82f9c4b44f Getting ready for version 0.3.0 2015-07-08 18:46:08 +02:00
Ilan Steemers f30cf45641 Removing old migrations 2015-07-08 15:42:30 +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 f29fdee5ad Fixes import error 2015-07-08 13:43:46 +02:00
Ilan Steemers f8708cfd73 Task now uses a UUID4 instead of a LUID 2015-07-08 13:33:03 +02:00
Ilan Steemers 40721b681f Added lastest migration
Made a squash

Next release will delete the old migrations
2015-07-07 21:00:30 +02:00
Ilan Steemers 729abaf726 set exit timeout if no timeout is given 2015-07-07 20:37:03 +02:00
Ilan Steemers 79d254317c bumping to version 0.2.2 2015-07-07 20:22:59 +02:00
Ilan Steemers 4ee47fc38f upping the coverage 2015-07-07 20:20:28 +02:00
Ilan Steemers b05fe76fbc log database errors more quiet 2015-07-07 17:54:24 +02:00
Ilan Steemers b801c480f5 Handle Redis errors better 2015-07-07 17:47:49 +02:00
Ilan Steemers 33b7fe50ed fix reincarnation bug without timeout set 2015-07-07 16:45:05 +02:00
Ilan Steemers 38dc20043c Stabilize the stop procedure after forced termination of the monitor causes an unstable queue.
* added timeout to final stop
* ony terminate on timeouts
* renamed done_queue to result_queue
2015-07-07 15:48:13 +02:00
Ilan Steemers 254d99e63b Fix reincarnation bug 2015-07-06 20:54:24 +02:00
Ilan Steemers 831427bcc0 Upped version to 0.2.1
adds support for django-redis connections
2015-07-06 13:52:03 +02:00
Ilan Steemers d06aa40a38 Removed Cluster.is_idle
It wasn't used and it could be confused with the cluster stat IDLE
2015-07-06 11:13:54 +02:00
Ilan Steemers 70ea211cfa Can spot difference between recycle and death now.
Added recycle flag
Changed pids to names for readability
2015-07-06 10:42:38 +02:00
Ilan Steemers e7d2dd0309 Missed a return on exception 2015-07-05 21:09:05 +02:00
Ilan Steemers 2ec424fce0 Adds func to searchable fields in admin 2015-07-05 14:37:39 +02:00
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