Commit Graph

1235 Commits

Author SHA1 Message Date
Ilan Steemers
c47786b6e2 Getting ready for 1.3.8 2021-06-08 13:02:30 +02:00
Ilan Steemers
6534d58aca Merge remote-tracking branch 'origin/master' 2021-06-08 12:58:23 +02:00
Ilan Steemers
73f825f20a Updated arrow version 2021-06-08 12:58:11 +02:00
Ilan Steemers
391b49c4c7 Updated arrow version 2021-06-08 12:55:46 +02:00
Ilan Steemers
c700804599 Updated arrow version 2021-06-08 12:55:19 +02:00
Ilan Steemers
b48e350a5b Updates requirements to Django 3.2.4 2021-06-03 23:25:09 +02:00
Ilan Steemers
d80580dae5 Updates to Django 3.2.4 2021-06-03 13:06:06 +02:00
Ilan Steemers
343fcb6013 Updates packages 2021-05-30 17:12:33 +02: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
Ilan Steemers
dc95da3a6b Create codeql-analysis.yml (#564) 2021-05-24 10:07:24 +02:00
njzhan
7be8205781 Fix docs error (#563)
Reference `django_q/conf.py`
2021-05-24 09:32:19 +02:00
Ilan Steemers
981ba0c80c Codecov_fixes (#562)
* Trying to get codecov working again

* Use poetry run

* Defining testing extras

* Fixing codecov output files

* Try installing the right Django version and show relevant upload tags

* Cover only project files
2021-05-23 17:37:22 +02:00
Alexandre Xavier
71d4b726ea Feature/improves multiple databases support (#561)
* feat: adds docker local files to ignore

* feat: adds replica key to django q settings

* feat: adds multiple database routers testing utility

* feat: ensures scheduler works with multiple databases and replicas

* feat: adds docker image to support containerized development

* refactor: removes unnecessary import

* style: improves import styling

* docs: adds replica setting to configure documentation
2021-05-23 15:10:31 +02:00
Ilan Steemers
071d5c5507 Updated Changlog 2021-05-14 21:54:10 +02:00
nittolese
8d49825d40 Fix #422 (#556) 2021-05-14 13:49:50 +02:00
Kenny Heinonen
1eb5cf4b9b Fixes #314 - Convert func to string before saving task in databse so that resubmitting failed task works (#554) 2021-05-14 13:48:08 +02:00
Kenny Heinonen
728a1b85d0 Add "qmemory" command (#553)
* Add qmemory command

* Update README, add test

* Redesign qmemory

* Add optional argument to show each worker's memory usage

* Add --workers argument to test_qmemory
2021-05-14 13:44:40 +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
Ilan Steemers
e8071749e9 Updating packages 2021-05-10 23:44:55 +02:00
Ilan Steemers
8c51f1fb8b Merge remote-tracking branch 'origin/master' 2021-05-07 17:28:49 +02:00
Kenny Heinonen
ad77ad7512 Fixes #225 (#552) 2021-05-07 17:26:41 +02:00
Ilan Steemers
59663de761 Getting ready for 1.3.6 2021-05-07 17:21:04 +02:00
amo13
57ae1dc4dc Update documentation for new retry time default (#538)
As suggested in #526
2021-05-01 16:24:17 +02:00
Ilan Steemers
de9ba04602 Fixes deprecated count method (#549)
* Replaces deprecated count with count_documents

* Uses new re_path instead of url()
2021-05-01 16:23:37 +02:00
Ilan Steemers
685691ff4c Updates testing to python 3.9 (#548) 2021-05-01 13:18:33 +02:00
Ilan Steemers
9afcb9e092 Updates test requirements 2021-05-01 12:45:23 +02:00
Ilan Steemers
e20174456a Updates test requirements to django 3.2 and hiredis 2 2021-04-09 08:22:50 +02:00
Ilan Steemers
a5aeeddb74 Mentions available locales 2021-04-06 21:29:47 +02:00
Ilan Steemers
4c117a8796 Adds JetBrains acknowledgement 2021-04-06 21:27:43 +02:00
Ilan Steemers
4f70793cdf Updates requirements 2021-03-26 11:25:17 +01:00
Ilan Steemers
c172ca6c36 Update rtd to 3.8 2021-03-26 11:24:53 +01:00
Ilan Steemers
2405e5a1e7 Mention docker-compose test file 2021-03-21 19:13:30 +01:00
Ilan Steemers
32eab5ea41 Updates testing requirements 2021-03-21 18:57:53 +01:00
Gouri Javed
e205674d31 added long polling support (#506)
* added long pooling support for  sqs broker

* changed the parameter name

* added long polling support ,

introduce new parameter in broker sqs block
parameter for long polling is receive_message_wait_time_seconds

eg :
Q_CLUSTER = {
      'name': 'test-queue',
      'sqs': {
         'aws_region': AWS_S3_REGION_NAME,
         'aws_access_key_id': AWS_ACCESS_KEY_ID,
         'aws_secret_access_key': AWS_SECRET_ACCESS_KEY,
         'receive_message_wait_time_seconds':20
     }
}

* added receive_message_wait_time_seconds parameter in test_broker.py

Co-authored-by: Javed Gouri <you@example.com>
2021-03-21 12:04:16 +01:00
weiyang
1869a94118 Use 'timezone.localtime()' when calculating the next run time (#520)
Signed-off-by: weiyang <weiyang.ones@gmail.com>
2021-03-21 12:02:22 +01:00
Ilan Steemers
840813828a Updates testing requirements 2021-03-13 17:16:04 +01:00
Ilan Steemers
515fd5cad2 Adds long description content type 2021-02-26 14:59:44 +01:00
Ilan Steemers
90140d9886 Updates changelog to 1.3.5 2021-02-26 14:50:00 +01:00
Ilan Steemers
d08cf78e10 Mentions german translation 2021-02-26 14:49:25 +01:00
Ilan Steemers
f2ca435e90 Updates copyright year 2021-02-26 14:48:31 +01:00
Ilan Steemers
ef3cffb738 Getting ready for 1.3.5 2021-02-26 14:12:24 +01:00
Ilan Steemers
80e97e978c Updates poetry packages 2021-02-26 14:06:18 +01:00
Ilan Steemers
b6d1f2a5e7 Merge remote-tracking branch 'origin/master' 2021-02-26 13:57:54 +01:00
Ilan Steemers
a89238ae2c Updates blessed, boto and Django for tests 2021-02-26 13:57:45 +01:00
Ruben
7892aef70a Add a warning for misconfiguration. (#509)
* Add a warning  for misconfiguration.

As specified in the docs, by default the settings result in a configuration where slow tasks that run for more than 60s cause repeated running of tasks, which has caused a few issues. This warning doesn't change the defaults, which would be a marge larger change, but instead provides a, hopefully, helpful message to the user.

* fixed missing bracket

* Update conf.py

fixed spelling

* Update conf.py

Made bool work for python 3.6+

* Fixing typo

Co-authored-by: Ilan Steemers <koed00@gmail.com>
2021-02-26 13:54:56 +01:00
Ilan Steemers
7d03536e89 Migrate to Github Action CI (#507)
* Some small refactors

* Initial test script

* Fixes django matrix

* Trying to set up Disque

* Disque as a docker service

* lowercase action name

* Remove Travis

* Replaces Travis badge with Github actions badge

* Show django version in step

* Typo
2021-02-14 18:59:04 +01:00
Ilan Steemers
e2580051bc Updates testing requirements 2021-02-11 20:22:33 +01:00
Ilan Steemers
d2709d707d Fixes title underline length 2021-02-11 19:16:54 +01:00
Ilan Steemers
f322eed7ac Merge pull request #502 from telmobarros/master
Add broker name in Schedule and enhanced Queued Tasks list display admin
2021-02-11 17:51:32 +01:00
Telmo Barros
c838fa82e4 Add broker name in Schedule docs 2021-02-11 13:04:00 +00:00