mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 19:28:12 +08:00
add attempt_count to task
This commit is contained in:
@@ -164,6 +164,9 @@ class Conf:
|
||||
# Optional error reporting setup
|
||||
ERROR_REPORTER = conf.get("error_reporter", {})
|
||||
|
||||
# Optional attempt count. set to 0 for infinite attempts
|
||||
ATTEMPT_COUNT = conf.get('attempt_count', 0)
|
||||
|
||||
# OSX doesn't implement qsize because of missing sem_getvalue()
|
||||
try:
|
||||
QSIZE = Queue().qsize() == 0
|
||||
|
||||
Reference in New Issue
Block a user