mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-29 07:38:11 +08:00
rename config var to max_retries, remove attempt_count form admin , add admin ui customization to docs
This commit is contained in:
+1
-1
@@ -481,7 +481,7 @@ def save_task(task, broker: Broker):
|
||||
existing_task.attempt_count = existing_task.attempt_count + 1
|
||||
existing_task.save()
|
||||
|
||||
if 0 < Conf.ATTEMPT_COUNT == existing_task.attempt_count:
|
||||
if Conf.MAX_ATTEMPTS > 0 and existing_task.attempt_count >= Conf.MAX_ATTEMPTS:
|
||||
broker.acknowledge(task['ack_id'])
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user