Commit Graph
100 Commits
Author SHA1 Message Date
Ilan Steemers 80eddae1e4 Merge pull request #23 from Koed00/dev
Adds count_group() and delete_group()
2015-07-19 05:23:48 -07: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 Steemers e22203d857 Merge pull request #22 from Koed00/dev
decoding values_list on a picklefield is faster
2015-07-19 03:29:37 -07: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 Steemers 9fbfc06878 Merge pull request #21 from Koed00/dev
Adds task groups
2015-07-19 02:42:41 -07:00
Ilan f65c05624d Schedule name and task group should have same max length 2015-07-18 22:32:32 +02:00
Ilan 58a671fb45 docs: added a fetch_group example 2015-07-18 20:50:16 +02:00
Ilan e4737d765a Schedule name is optional
For backwards compatibility the schedule name is an optional keyword in the `schedule` function.

Adjusted docs accordingly
2015-07-18 19:41:21 +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 e1d483e1c1 docs: describes the new group options 2015-07-18 18:50:14 +02:00
Ilan a5d4c5186c renamed get_group_result to get_result_group 2015-07-18 18:49:50 +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 05c8f3bc16 Merge pull request #20 from Koed00/dev
Tests now run with logging level debug
2015-07-17 05:28:59 -07:00
Ilan 688d25c76d Getting ready for v0.3.6 2015-07-17 14:27:45 +02:00
Ilan 84ac19b6a9 Updated README
added some documentation links
2015-07-17 14:26:39 +02:00
Ilan c12884cc44 Updated gitignore with .idea and djq 2015-07-17 14:20:50 +02:00
Ilan b876b1e06d Tests now run with logging level DEBUG 2015-07-17 14:17:40 +02:00
Ilan Steemers b58f5038db Merge pull request #19 from Koed00/docs
docs: small edits
2015-07-16 22:09:40 +02:00
Ilan Steemers 1e7b3f6ce0 Merge pull request #18 from Koed00/dev
Adds a `timeout` override per task
2015-07-16 21:57:47 +02:00
Ilan 40ac0bfce5 Minor updates to timeout docs 2015-07-16 21:01:27 +02:00
Ilan af5e99249f Paste accidents happen 2015-07-16 20:47:14 +02:00
Ilan af735c328e Adds a timeout override per task
* added a `timeout` keyword to tasks.
* timeouts now count down instead of up
* `timeout` in task overrides global timeout setting
* added tests for timeout override
* added a test for recycling
2015-07-16 20:35:29 +02:00
Ilan c0ea483784 docs: small edits 2015-07-16 18:32:45 +02:00
Ilan Steemers afda141ed1 Merge pull request #17 from Koed00/dev
Adds management commands to the tests
2015-07-16 18:22:10 +02:00
Ilan 91520e9ca7 removes some unused test code 2015-07-16 17:26:08 +02:00
Ilan 0dbeccdfda Optparse needs named arguments in call_command 2015-07-16 16:11:32 +02:00
Ilan 80887ffd9c Django 1.7 doesn't like argparse for management commands.
Changed to optparse for compatibility
2015-07-16 15:54:38 +02:00
Ilan Steemers 3cd3a12b16 Merge pull request #16 from Koed00/docs
Docs: Added a report example
2015-07-16 15:20:32 +02:00
Ilan 5a3f875baa Added management commands to tests
* added --run-once option to the management commands for testing
2015-07-16 15:17:15 +02:00
Ilan 218b6a9795 removed unused import 2015-07-16 14:36:36 +02:00
Ilan 6826e75a37 docs: Added a report example
Also added  a test based on the example.
2015-07-16 14:03:07 +02:00
Ilan 28d57cb03b docs: minor changed before release 2015-07-15 23:42:02 +02:00
Ilan b26a2d2950 getting ready for new version 2015-07-15 23:18:13 +02:00
Ilan 4a7feb8e50 getting ready for new version 2015-07-15 23:14:37 +02:00
Ilan Steemers 5b63b2d52c Merge pull request #15 from Koed00/dev
Adds cpu affinity to workers
2015-07-15 23:04:35 +02:00
Ilan 1e81cc413d Missing newline 2015-07-15 22:50:53 +02:00
Ilan 9857f33e3e Workaround for Travis
fixed typo
2015-07-15 22:34:40 +02:00
Ilan a5580c75a1 Workaround for Travis
Travis doesn't support cpu affinity in their virtuals so I've added a setting TESTING that will bypass the actual affinity setting, but will still cover most of the code.
Might be useful for future workarounds.
2015-07-15 22:17:13 +02:00
Ilan 464255fa88 Changed cpu affinity docs slightly 2015-07-15 22:06:17 +02:00
Ilan 1f28bf1c68 Travis doesn't like cpu affinity. I'm guessing 2015-07-15 20:15:46 +02:00
Ilan 2bef73c22f Tweaked cpu affinity docs 2015-07-15 20:01:55 +02:00
Ilan 2d0820e80b Adds cpu affinity for the workers. Courtesy of the optional psutil module. 2015-07-15 19:53:13 +02:00
Ilan Steemers 507ccf7e11 Merge pull request #14 from Koed00/dev
Clean up redis key after test
2015-07-15 13:05:33 +02:00
Ilan e5708a1ab2 Clean up redis after test 2015-07-15 12:45:11 +02:00
Ilan d92f71c470 docs: changed header 2015-07-15 09:33:54 +02:00
Ilan a37d721fa3 docs: wording 2015-07-13 18:01:55 +02:00
Ilan 39e2d73a52 docs: added a section about process managers like Supervisor 2015-07-13 17:57:37 +02:00
Ilan 49e407f1c2 docs: some tweaks 2015-07-13 17:57:17 +02:00
Ilan 2104710653 docs: formatting error 2015-07-13 17:57:04 +02:00
Ilan 5dc21ce64a docs: fixed typo 2015-07-13 15:40:48 +02:00
Ilan Steemers f8442c5eda Merge pull request #13 from Koed00/dev
Adding sphinx build to Travis
2015-07-13 15:36:29 +02:00
Ilan 8e07203d18 Adding sphinx builds to Travis
* added default module django_q
* set build mode to nit-picky
* warnings raise errors

Want to make sure the docs are neat and build on Travis , to make it easier to accept doc pull requests
2015-07-13 15:30:12 +02:00
Ilan 3e00dffb6a Adding sphinx builds to Travis 2015-07-13 14:13:12 +02:00
Ilan 9f382125f5 Adding sphinx builds to Travis 2015-07-13 14:07:45 +02:00
Ilan Steemers 40b8b0f0db Merge pull request #12 from Koed00/docs
Adding examples to the docs
2015-07-13 14:01:22 +02:00
Ilan cff01c30aa Adding examples to the docs 2015-07-13 13:36:47 +02:00
Ilan 259f645b12 version 0.3.4 2015-07-12 20:26:02 +02:00
Ilan Steemers 5c3ecc6a6b Merge pull request #11 from Koed00/dev
Testing with Arrow 0.6.0 now
2015-07-12 20:20:05 +02:00
Ilan 02c1c5078f Testing with Arrow 0.6.0 now 2015-07-12 20:15:44 +02:00
Ilan Steemers ea7115f5ad Merge pull request #10 from Koed00/dev
Schedules of type ONCE will selfdestruct with negative repeats
2015-07-12 20:06:14 +02:00
Ilan Steemers 6c9dd1a910 Schedules of type ONCE will now self destruct with negative repeats or just deactivated with positive repeats 2015-07-11 11:32:46 +02:00
Ilan Steemers fdfa938113 docs: formatting error 2015-07-10 18:19:38 +02:00
Ilan Steemers 13bbf3dcc4 docs: added section about scheduling management commands 2015-07-10 17:36:18 +02:00
Ilan Steemers 2c58262b17 Meta option migration 2015-07-10 12:45:18 +02:00
Ilan Steemers 9375216666 Bumping version to 0.3.3 2015-07-10 12:38:02 +02:00
Ilan Steemers 423e0d3a0d Merge pull request #9 from Koed00/dev
Fixes save pruning bug
2015-07-10 12:19:01 +02:00
Ilan Steemers e590628612 linting some blank lines 2015-07-10 12:14:57 +02:00
Ilan Steemers 90d30e14e8 fixed regression of the save pruning due to introduction of uuid as primary key. 2015-07-10 12:07:27 +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 977cf98ba0 docs: made a note of succesful tasks not showing when the save_limit is set to -1 2015-07-10 11:48:15 +02:00
Ilan Steemers 9f54a52de9 edit link on the func column in the schedule admin 2015-07-10 11:30:54 +02:00
Ilan Steemers 46c439f909 Some added info on the sync option 2015-07-09 20:47:20 +02:00
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 31dbd29b36 Merge pull request #6 from Koed00/docs
Updated docs
2015-07-09 13:20:29 +02:00
Ilan Steemers a83dcf642b Adding more info to docs 2015-07-09 12:00:59 +02:00
Ilan Steemers a1a3889b07 Added Django 1.8 intersphinx 2015-07-09 10:58:43 +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 52e49e0bc2 Merge pull request #5 from nickpolet/master
Added 'future' to setup.py dependencies
2015-07-09 07:26:27 +02:00
Ilan Steemers 25b6aa0a65 Updating to Django 1.8.3 and 1.7.9 2015-07-08 22:58:47 +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 7ea47ce527 Update conf.py
Bumping to version 0.3.1
2015-07-08 22:47:59 +02:00
Ilan Steemers 9b58902243 Update setup.py
Bumping to version 0.3.1
2015-07-08 22:47:02 +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 4439b84901 Update requirements.txt
Should fix Travis requirements
2015-07-08 20:58:42 +02:00
Ilan Steemers b962d4179b Merge pull request #3 from Koed00/dev
Switched to uuid4 instead of luid
2015-07-08 20:48:06 +02:00
Ilan Steemers f529fc16cb Upped docs to 0.3.0 2015-07-08 20:30:02 +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 b2098d3f0a Updated docs for new version 2015-07-08 15:09:19 +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 ddf861a16d Changed url to rtd
added keywords to setup
2015-07-07 21:50:58 +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