Commit Graph

34 Commits

Author SHA1 Message Date
sinowood
52c04217e9 Multiple queue, multiple cluster in one site (#71)
* Support for multi-queue, multi-cluster configuration. API changes include:
  * Adding `cluster` to async_task() parameters and Task model
  * Adding argument --name to qcluster command
  * Necessary adjustments to Conf and Broker classes
  * Some admin improvements

* Add settings.Q_CLUSTER['ALT_CLUSTERS']: q_cluster config overrides for alternative clusters;
Add Conf.CLUSTER_NAME: separate usage from Conf.PREFIX;
QueueAdmin/OrmQ detail page enhanced: now displaying args/kwargs/q_options instead of encrypted payload.

* if `cluster` argument is not set (the default), async_task() and schedule() will be handled by the default cluster; Documentation update.

* Text cleanup

* Documentation update.

* Fix TIMEOUT setting in Windows for non-default cluster

---------

Co-authored-by: Stan Triepels <1939656+GDay@users.noreply.github.com>
2023-04-02 16:36:17 +02:00
msabatier
a013591de5 Add intended_date_kwarg field to Schedule (#62)
Co-authored-by: Marc Sabatier <marc.sabatier@eco-adapt.com>
2023-01-17 22:52:11 +01:00
Stan Triepels
3c0c32758d Chore: Flake8, isort and Black (#40) 2022-11-16 01:45:40 +01:00
Stan Triepels
542e04db54 Feat: Add biweekly and bimonthly and fix translations (#36) 2022-11-13 01:00:11 +01:00
Ilan Steemers
15155c7a99 Build improvements (#569)
* Black linting

* Adding Black to dev dependencies and upping minimal python to 3.6.2 for compatibility

* Updating packages

* Removing pip-tools input and exporting requirements with poetry

* Deleting old setup files and test runner

* Trying 1.3.7

* Looser extras requirements to prevent conflicts

* Sorted imports with isort

* Added iSort to dev dependencies

* Fixes localtime for naive setups
2021-05-30 17:10:07 +02:00
Dimitri
957f807598 Allow tasks to be scheduled on a specific cluster (#555)
* Allows schedule by cluster

* Update docs

* Add example in doc

* Fixes cluster field must be blank

* Adds cluster arg to schedule func

* Adds cluster field in list_display/filter for admin

* Uses Q filter to fetch schedule

* Fixes ref in doc

* Adds tests
2021-05-14 13:42:54 +02:00
Tim O'Meara
45b0b2cc27 add attempt_count to config docs, set value to 1 in inital task save 2020-08-11 10:42:28 -05:00
Ilan Steemers
d3ac0563f4 Adds validator migration 2020-07-02 18:09:01 +02:00
Ilan Steemers
1a1597c050 Adds cron migration 2020-06-28 17:14:20 +02:00
Bastien Vallet
e3560180af [cleanup] Clean migrations 2020-06-10 12:01:07 +02:00
Bastien Vallet
ff4836fc7b Add a missing migration
Required by django-picklefield major update
2020-06-10 11:06:13 +02:00
Will Gordon
c037f405de Remove and replace task.id field, instead of Alter 2019-06-04 20:51:51 -04: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
2bffcf554b Django ORM broker 2015-09-14 13:24:43 +02:00
Ilan
de5d0f2725 Adds a 'minutes' option to the scheduler 2015-08-05 20:30:29 +02:00
Ilan
f65c05624d Schedule name and task group should have same max length 2015-07-18 22:32:32 +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
2c58262b17 Meta option migration 2015-07-10 12:45:18 +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
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
8188893ff4 Schedule args and kwargs fields are now unlimited text fields. 2015-06-30 18:34:14 +02:00
Ilan Steemers
888a2a8062 migration updated for kwargs and args 2015-06-27 16:22:33 +02:00
Ilan Steemers
666bdc97dc * updated README
* both func and hook check for callable.
2015-06-26 14:24:25 +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
0ed1da8f05 Refactoring to make testing more stable 2015-06-23 21:12:08 +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
5adf92eb27 hooks now work
refactored task as dict instead of list for readability.
2015-06-18 15:23:21 +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
8c0a26e0b4 Testing basic layout 2015-06-15 16:02:50 +02:00