Commit Graph
19 Commits
Author SHA1 Message Date
Stan TriepelsandRajeev KL ce98aaa15c allow atomic on external db (#14)
Co-authored-by: Rajeev KL <rajeev@labmoneta.io>
2022-10-15 23:24:30 +02:00
Stan TriepelsandWesley Ellis 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 TriepelsandNoortheen Raja 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 TriepelsandMarc Sabatier 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 TriepelsandMarc Sabatier 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 TriepelsandMarc Sabatier 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 Triepelsandethemguner 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 TriepelsandNoortheen Raja 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