From a59323422616fd54a037e2216256fa0e7e901430 Mon Sep 17 00:00:00 2001 From: Blaze <88249929+syncblaze@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:48:22 +0100 Subject: [PATCH] Update client.py Co-authored-by: nulldomain --- lightbulb/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightbulb/client.py b/lightbulb/client.py index 8dc35831..8db9b540 100644 --- a/lightbulb/client.py +++ b/lightbulb/client.py @@ -332,8 +332,8 @@ def task( # noqa: D417 the client upon the client being started, the task will also be started; it will also be started if being added to an already-started client. max_failures: The maximum number of failed attempts to execute the task before it is cancelled. - Setting this to a negative number will disable this behaviour, and the task won't be cancelled, - no matter how often the task fails. + Setting this to a negative number will prevent the task from being cancelled, regardless of + how often the task fails. max_invocations: The maximum number of times the task can be invoked before being stopped. Setting this to a negative number will disable this behaviour, allowing unlimited invocations.