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
Stan Triepels
b66dfbd3af
Fix DST timezone change (move from DST to normal jump) ( #56 )
2022-12-22 03:02:53 +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
4d454e4001
Fix: Daylight saving time issue with scheduler ( #47 )
2022-12-21 01:44:34 +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
c59f036158
Remove arrow dependency, update packages, set up testing with compose ( #17 )
2022-10-19 02:01:16 +02:00
Ilan Steemers
4df036dc9c
Autofield ( #574 )
...
* Adds autofield default
* linting
* Updates packages
2021-06-10 15:42:21 +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
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
alx-sdv
28197dc4fa
Model.__unicode__() has no effect
2020-10-05 12:30:11 +03:00
Ilan Steemers
f223cfcb30
Removing value check
2020-07-01 14:25:51 +02:00
Ilan Steemers
532199fff3
Trigger cron validation
2020-07-01 14:18:04 +02:00
Ilan Steemers
e6f82c5158
test model unicode
2020-06-30 22:00:31 +02:00
Ilan Steemers
34293cfcad
Test cron validator
2020-06-29 19:08:08 +02:00
Ilan Steemers
a02ded0ade
Get correct type name
2020-06-28 20:24:22 +02:00
Ilan Steemers
5509fbb496
Fixes test for cron
2020-06-28 19:58:03 +02:00
Ilan Steemers
1906be92fd
Adds test for cron
2020-06-28 19:52:24 +02:00
Ilan Steemers
16fa6fa8d9
Fixes deprecated arrow syntax
2019-08-10 14:03:03 +02:00
Ronald van Zon
dd4f02f122
Add custom SharedCounter / Queue
...
This will not fix anything related to Django 2.0 but will allow MAC
users to run Django-Q allowing tests to be run locally.
2017-12-13 14:36:12 +01:00
Harm Geerts
cf37efb1eb
Replace global Conf mangling with monkeypatch
...
The test suite, especially for the brokers, was heavily dependant on the
success of the tests preceeding it to pass. This commit should eliminate
that dependency and allow tests to fail without affecting others.
It also removes the need to cleanup globals manually after a test.
2016-11-29 18:08:52 +01:00
Ilan Steemers
d398685345
Adds a check for duplicate schedule names.
...
This should prevent the accidental repeated creation of schedules.
2015-11-19 17:57:31 +01:00
Ilan Steemers
2bffcf554b
Django ORM broker
2015-09-14 13:24:43 +02:00
Ilan Steemers
e4a5951f12
Resets SQS conf in case of test failure
2015-09-09 18:59:24 +02:00
Ilan Steemers
0740c90148
adds pluggable brokers
...
* added redis broker
* added django_redis broker
* added task acknowledgement
2015-08-29 18:54:07 +02:00
Ilan Steemers
3e92fddcdd
#50 removes redis connection argument from pusher process
2015-08-24 10:08:43 +02:00
Ilan
b99e16f108
adds catch_up configuration option
...
When a cluster hasn't run for a while, the default behavior is to keep executing schedules until they are caught up with the present time.
By setting `catch_up` to False, schedules will not play catch up and instead get rescheduled to the future.
2015-08-18 11:57:15 +02:00
Ilan
3d12c1d36e
adds queue_size()
...
returns the size of the current redis queue
2015-08-13 15:54:57 +02:00
Ilan
63030aa9d1
Tests schedule creation via model
2015-08-10 13:18:50 +02:00
Ilan
de5d0f2725
Adds a 'minutes' option to the scheduler
2015-08-05 20:30:29 +02:00
Ilan
e4737d765a
Schedule name is optional
...
For backwards compatibility the schedule name is an optional keyword in the `schedule` function.
Adjusted docs accordingly
2015-07-18 19:41:21 +02:00
Ilan
e5708a1ab2
Clean up redis after test
2015-07-15 12:45:11 +02:00
Ilan Steemers
6c9dd1a910
Schedules of type ONCE will now self destruct with negative repeats or just deactivated with positive repeats
2015-07-11 11:32:46 +02:00
Ilan Steemers
0413a2e65a
refresh_from_db is 1.8 only
2015-07-08 21:06:32 +02:00
Ilan Steemers
4ee47fc38f
upping the coverage
2015-07-07 20:20:28 +02:00
Ilan Steemers
b113a52825
Restructured all the modules
...
The core module was becoming too large.
By splitting it in cluster, monitor and tasks it becomes more manageable. It also reflects the documentation structure.
2015-07-03 15:12:11 +02:00
Ilan Steemers
4e38925cea
Adds timeout mechanism for workers
...
Workers now share a ctype with the sentinel to indicate if they are currently executing a task. This timer is incremented each guard loop until the worker resets it after finishing a job or until it reaches the TIMEOUT value and the worker is terminated by the sentinel.
2015-07-01 10:54:36 +02:00
Ilan Steemers
4096b35adf
Added schedule command
...
* improved schedule tests
* updated README
* bumped up to version 0.1.3
2015-06-30 16:38:08 +02:00
Ilan Steemers
482569b312
Rework - configuration now in class - better stop handling under heavy load. - scheduler test - better monitoring - better status reporting
2015-06-30 10:58:24 +02:00