Jim Jagielski
f5ecd337ad
Merge branch 'master' into error-on-timeout
2023-02-17 12:33:47 -05:00
GDay
01cb652071
Release v1.4.11
2023-01-31 00:24:44 +01:00
GDay
25cd180410
Release v1.4.10
2023-01-27 02:10:20 +01:00
Stan Triepels
264607f59c
Bump translations to latest changes ( #63 )
2023-01-26 02:49:46 +01:00
msabatier and Stan Triepels
17c1609f10
Add meaningfull process titles with currently running task name ( #57 )
...
* Customize process names (in ps/top) and add task name in logs
* Increase severity of reincarnate log messages and add task name
* Document setproctitle optional dependency
Co-authored-by: Marc Sabatier <37879561+msabatier@users.noreply.github.com >
Co-authored-by: Stan Triepels <1939656+GDay@users.noreply.github.com >
2023-01-26 02:21:56 +01:00
msabatier and Marc Sabatier
650c3b1524
Fix use of database router for write queries and remove Conf.HAS_REPLICA ( #61 )
...
Co-authored-by: Marc Sabatier
2023-01-18 02:12:13 +01:00
msabatier and Marc Sabatier
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
msabatier
865b1a5ba8
Change task timeout logic to have now() as execution time ( #58 )
2023-01-11 01:48:57 +01:00
msabatier
8cd1028391
More explicit log messages in exception handling ( #59 )
2023-01-11 00:36:35 +01:00
GDay
31e82ad028
Release v1.4.9
2022-12-22 03:06:01 +01:00
Stan Triepels
b66dfbd3af
Fix DST timezone change (move from DST to normal jump) ( #56 )
2022-12-22 03:02:53 +01:00
GDay
08baaab125
Release v1.4.8
2022-12-21 03:46:01 +01:00
Stan Triepels
ce81059da8
Fix: allow both ZoneInfo and Pytz depending on django version ( #55 )
2022-12-21 03:42:38 +01:00
Stan Triepels
cf33275d92
Release v1.4.7 ( #54 )
2022-12-21 01:53:10 +01:00
Stan Triepels
e78e473be3
Fix: handling exceptions inside job function ( #51 )
2022-12-21 01:44:59 +01:00
Stan Triepels
4d454e4001
Fix: Daylight saving time issue with scheduler ( #47 )
2022-12-21 01:44:34 +01:00
Stan Triepels
c1d4858f62
Release 1.4.6 ( #43 )
2022-11-30 15:09:49 +01:00
Andreas Andersen and Andreas Bok Andersen
2566955782
Log exceptions with logger.exception ( #42 )
...
Co-authored-by: Andreas Bok Andersen <andreas.bokandersen@glooko.com >
2022-11-30 15:03:20 +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
Stan Triepels
17205549eb
Fix baseconv/base62 deprecation warning for Django 5.x ( #34 )
2022-11-09 00:41:12 +01:00
Stan Triepels
6f19b3d270
Fix: func reference in admin ( #28 )
2022-11-05 02:45:44 +01:00
Stan Triepels
529a7de59a
Make blessed optional ( #20 )
2022-10-20 22:16:48 +02:00
Stan Triepels
0aac4e7b0d
Fix unclear error when function is not called correctly ( #19 )
2022-10-20 17:24:17 +02:00
Stan Triepels
8822e7d409
Remove funding file, add docker/compose for development project and fix ( #18 )
...
task names in logs
2022-10-20 15:17:44 +02:00
Noortheen Raja
64d73a77b7
feat: option to fail-on-timeout
...
fixes #251
2022-10-19 02:27:12 +02:00
Stan Triepels
c59f036158
Remove arrow dependency, update packages, set up testing with compose ( #17 )
2022-10-19 02:01:16 +02:00
Stan Triepels and Rajeev 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 Triepels and Wesley 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 Triepels and Noortheen 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 Triepels and Marc 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 Triepels and Marc 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 Triepels and Marc 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 Triepels and ethemguner
1edb426541
Feat: Add Turkish translation ( #8 )
...
Co-authored-by: ethemguner
2022-10-14 01:52:05 +02:00
Stan Triepels and Noortheen 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
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
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
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
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
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
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
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