Ilan Steemers
4076795dc3
truncate error description in admin
...
Also removes old conditional imports
2018-08-13 18:50:35 +02:00
Ilan Steemers
7d5c9f8b46
removes xrange compat
2018-08-05 13:39:04 +02:00
Ilan Steemers
acebdaa850
Renames async/enqueue to async_task.
2018-08-01 15:20:34 +02:00
Pierre-Elliott Bécue
ae75a84f7f
Replaces async occurrences with alternatives
...
* async is now a reserved word in python3.7
* Rename async function to enqueue
* Rename all async_ functions to enqueue_
* Rename Async class to AsyncTask
* Updates the docs.
2018-07-07 21:33:43 +02:00
Balletie
03abbc960f
Add option for acknowledging failed tasks (globally and per-task)
...
If a task fails with an exception, it is retried until it
succeeds. This is contrary to what is said in the documentation: under
the "Architecture" section, heading "Broker" it says that even when a
task errors, it's still considered a successful delivery. Failed tasks
never get acknowledged however, thereby being retried after the
timeout period. See also issues #238 and #194 .
This patch adds an option to acknowledge failures, thereby closing
issue #238 . Issue #194 would require some more work. The default of
this option is set to `False`, thereby maintaining backwards
compatibility.
2018-03-09 22:09:46 +01:00
Ilan Steemers
f353daca53
Merge branch 'django_2_compat' into django_2_compat
2018-01-08 10:53:49 +01:00
ilan
81d4b36b1b
Cherry picking compatibility commits
2018-01-08 09:57:20 +01: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
Ronald van Zon
a4086bffd7
Update MIDDLEWARE_CLASSES to represent new style.
...
In Django 1.10 MIDDLEWARE_CLASSES is set to deprecated and is removed in Django 2.0.
The SessionAuthenticationMiddleware is also removed from Django 2.0 and was already
unconditionally enabled in Django 1.10.
2017-12-12 15:29:12 +01:00
Ronald van Zon
805390fb9e
Remove include for admin site urls
2017-12-12 15:09:03 +01:00
Adam Chidlow
bebe1ba64f
Django 2.0 compatibility
...
- django.core.urlresolvers -> django.urls
- fix major/minor version detection
2017-11-01 18:23:14 +08:00
ilan
8a7567bc77
Replaces some relative imports
2017-10-10 12:13:33 +02:00
Benjamin Bach
5ea55e3718
Import python3 version of range
2017-07-09 21:44:25 +02:00
ilan
79c4b5bb7e
removing sqs tests
2017-04-05 13:43:10 +03:00
ilan
f057ca94ca
Skip SQS test for now
2017-04-05 13:31:30 +03:00
ilan
7c28b16adb
Skip SQS test for now
2017-04-05 13:24:03 +03:00
ilan
eae1bcf283
Checks if SQS is retrying in time
2017-04-05 13:12:17 +03:00
ilan
8c6058003f
removes false assert for now
2017-04-05 13:03:55 +03:00
ilan
1983a523fc
Pause on dequeue for sqs
2017-04-05 12:56:40 +03: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
c17468ef86
docs: Adds Custom broker class documentation
...
Also changes some of the variable and settings names, to make them less ambiguous.
2016-01-27 12:06:49 +01:00
Ilan Steemers
b1b4a33c51
Fixes typo
2016-01-27 10:40:45 +01:00
Ilan Steemers
d2d00e4f94
Adds test for custom broker configuration
2016-01-27 10:33:19 +01:00
Ilan Steemers
9741efdc5e
Adds test for task result update
2016-01-24 21:30:42 +01:00
Ilan Steemers
8b27cdae17
Removes duplicate test
2016-01-09 13:42:13 +01:00
Ilan Steemers
f160a68fbc
Merge pull request #123 from Koed00/schedule
...
Adds a check for duplicate schedule names.
2016-01-07 19:59:46 +01:00
Ilan Steemers
edb0ffbed3
Retry test is broken
2016-01-07 14:37:55 +01:00
Ilan Steemers
5791089497
Temporarily disabling annoying ironmq bug
2016-01-07 14:09:01 +01:00
Ilan Steemers
0879e4d128
Iron mq is being pendantic
2016-01-07 12:38:13 +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
e736d79a57
Adds global override test to Async
2015-10-27 11:10:46 +01:00
Ilan Steemers
9dd79f6522
Adds test for new Async class
2015-10-26 19:35:38 +01:00
Ilan Steemers
eb72eb33d9
Adds an Iter class
...
The Iter class serves as a convenience rwrapper around the `async_iter` function
2015-10-18 13:53:32 +02:00
Ilan Steemers
2df29b908c
Adds tests for task chains
...
adds several small improvements based on the problems that surfaced during writing the tests
2015-10-17 18:49:45 +02:00
Ilan Steemers
2ba88f2d17
adds cached option to async_iter
2015-10-06 19:37:02 +02:00
Ilan Steemers
edf188e7bc
adds async iter tests
2015-10-04 11:52:43 +02:00
Ilan Steemers
0c2da87e27
adds async iter tests
2015-10-04 11:49:07 +02:00
Ilan Steemers
9243731a9c
Updates test for new wait and count options
2015-10-02 20:03:38 +02:00
Ilan Steemers
f6d14bc7b3
adds delete_cached
2015-10-01 19:25:43 +02:00
Ilan Steemers
6127b551ae
fixes tests for cache with better coverage
2015-10-01 17:21:26 +02:00
Ilan Steemers
33282cb2e5
cached result backend
...
first version of a result backend using django's cache framework
2015-10-01 14:58:28 +02:00
Ilan Steemers
826178c463
Adds a MongoDB broker
...
* adds mongo broker tests
* adds mongo brokers docs
* broker info is now cached when it needs to connect to a server, to reduce traffic.
2015-09-25 20:03:39 +02:00
Ilan Steemers
ef6a60478a
Merge pull request #74 from Koed00/dev
...
Removes root imports for Django 1.9
2015-09-25 12:35:10 +02:00
Ilan Steemers
b3381d6dae
removes root imports for django 1.9
...
typo in test
2015-09-24 15:47:40 +02:00
Ilan Steemers
cef48da789
removes root imports for django 1.9
...
Updated docs to promote submodule imports
2015-09-24 15:41:32 +02:00
Ilan Steemers
985fbb31cc
tests cluster stop when already stopped
2015-09-24 11:21:28 +02:00
Ilan Steemers
dc47ebef3c
test for lock size in monitor
2015-09-19 17:25:02 +02:00
Ilan Steemers
7532cac93a
test for lock_size in main class
2015-09-19 15:52:28 +02:00
Ilan Steemers
16c28a88e2
adds (approximate) lock_size to SQS broker
...
docs: added lock_size
2015-09-18 15:40:30 +02:00
Ilan Steemers
a493f9cc78
Adds wait option to result() and fetch()
2015-09-18 10:57:09 +02:00