Commit Graph

1266 Commits

Author SHA1 Message Date
Stan Triepels
ce98aaa15c allow atomic on external db (#14)
Co-authored-by: Rajeev KL <rajeev@labmoneta.io>
2022-10-15 23:24:30 +02:00
Stan Triepels
00fe611b86 Use logger.hasHandlers() to setup fallback logging (#13)
Instead of checking if the django-q logger has any handlers directly,
use the hasHandlers [1] method, which will check if any parent loggers
have handlers as well.

This fixes a bug where django-q configures it's own logging even though
the root logger has a handler set

 1. https://docs.python.org/3/library/logging.html#logging.Logger.hasHandlers

Co-authored-by: Wesley Ellis <wellis@benchsci.com>
2022-10-15 17:39:51 +02:00
Stan Triepels
9ace854290 Save limit per group/func/name (#12)
* feat: option to save tasks per group/func/name

* test: update tests for save limit

* fix: convert func when save-limit checking

when passed as function it needs to be converted to work

* Add warning if option is not valid

Co-authored-by: Noortheen Raja <jnoortheen@gmail.com>
2022-10-15 01:56:41 +02:00
Stan Triepels
e3f959c258 Admin improvements (#11)
* Add the group column to OrmQ admin page

* Add group field to tasks list and search_field

* Add search by name to Schedule admin page

* Limit succesful task history per schedule with SAVE_LIMIT_GROUP config

* Improve ScheduleAdmin list view performance

Co-authored-by: Marc Sabatier <marc@sabatier.online>
2022-10-14 17:13:48 +02:00
Stan Triepels
4aa6325ae8 Replace use of eval() by ast.parse() + ast.literal_eval() (#10)
Co-authored-by: Marc Sabatier <marc@sabatier.online>
2022-10-14 16:04:38 +02:00
Stan Triepels
803618da03 Fix connection issues with CONN_MAX_AGE > 0 (#9)
Co-authored-by: Marc Sabatier <marc@sabatier.online>
2022-10-14 02:08:48 +02:00
Stan Triepels
1edb426541 Feat: Add Turkish translation (#8)
Co-authored-by: ethemguner
2022-10-14 01:52:05 +02:00
Stan Triepels
3f9c4ca91f Feat: Release plan to pypi (#7) 2022-10-13 18:15:03 +02:00
Stan Triepels
d32d3f5a09 Docs updates (#6)
* Update django docs links to 4.0
* Update Django Q to Django Q2
* Use different theme to make difference more clear between the original and this forked one
* Added info notice about this fork
* Some small layout/typo fixes
2022-10-13 01:38:24 +02:00
Stan Triepels
f698792f60 Fix: readthedocs config file (#5)
* Fix readthedocs file

* remove trigger from test workflow
2022-10-12 02:06:48 +02:00
Stan Triepels
89dd7608f0 Codecov -> Coveralls (#4)
Migrate codecov to coveralls
2022-10-09 01:51:09 +02:00
Stan Triepels
c4ebfc66b9 Show function name in log when running task (#3)
* refactor: show function name as it runs

* feat: log func name when processed

Co-authored-by: Noortheen Raja <jnoortheen@gmail.com>
2022-09-17 01:48:07 +02:00
Stan Triepels
0b9703f56a Update dependencies and add support for python 3.10 2022-09-16 02:32:07 +02:00
GDay
fbb3333202 Update dev dependencies 2022-09-16 02:22:22 +02:00
GDay
c17fcf2cbc avoid being recognized as 3.1 instead of 3.10 2022-09-16 02:10:17 +02:00
GDay
318c4c6926 add 3.10 test as well 2022-09-16 02:06:28 +02:00
GDay
5e51a28bbd Update when action is triggered and update environment to .13 (.14 not
available yet
2022-09-16 01:59:28 +02:00
GDay
1114b510fd update dependencies 2022-09-16 01:33:06 +02:00
Stan Triepels
330a7d556a Fix typo configure.rst 2022-09-15 17:13:02 +02:00
LJlkdskdjflsa
4d17cb965d Update configure.rst 2022-09-01 12:08:41 +08:00
Ilan Steemers
85baaccd2c Updates urllib3, arrow and isort 2021-06-26 14:04:16 +02:00
Ilan Steemers
dc0a4ec151 Updates changelog 2021-06-20 16:48:38 +02:00
Ilan Steemers
f8cd136668 Post execute signal and tests (#580)
* adds post_execute signal and tests

* Updates signal docts

* Fixes typo in docs
2021-06-20 15:43:08 +02:00
Ilan Steemers
099d4c64c5 Fixes django test version 2021-06-19 22:10:39 +02:00
Ilan Steemers
c5d1c8ba01 Updates Boto 2021-06-19 22:10:24 +02:00
Ilan Steemers
97f633ca65 Updates Blessed 2021-06-15 18:56:02 +02:00
Ilan Steemers
1cd20975fe Updates black 2021-06-14 21:16:59 +02:00
Ilan Steemers
9133927153 Updates changelog to 1.3.9 2021-06-10 18:44:31 +02:00
Ilan Steemers
4a8ef8f388 Getting ready for 1.3.9 2021-06-10 18:40:27 +02:00
Ilan Steemers
4df036dc9c Autofield (#574)
* Adds autofield default

* linting

* Updates packages
2021-06-10 15:42:21 +02:00
Nurettin Onur TUĞCU
410327bff4 Update __init__.py (#572)
Fixes 
```
RemovedInDjango41Warning: 'django_q' defines default_app_config = 'django_q.apps.DjangoQConfig'. Django now detects this configuration automatically. You can remove default_app_config.
```
2021-06-09 12:27:15 +02:00
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