feat: option to fail-on-timeout

fixes #251
This commit is contained in:
Noortheen Raja
2022-10-19 02:27:12 +02:00
committed by GDay
parent 596842e692
commit 64d73a77b7
3 changed files with 41 additions and 0 deletions
+3
View File
@@ -123,6 +123,9 @@ class Conf:
# Number of seconds to wait for a worker to finish.
TIMEOUT = conf.get("timeout", None)
# Whether to fail the task when it times-out.
FAIL_ON_TIMEOUT = conf.get("fail_on_timeout", False)
# Whether to acknowledge unsuccessful tasks.
# This causes failed tasks to be considered delivered, thereby removing them from
# the task queue. Defaults to False.