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