From 81b9e6b5920d23406279cc86c09ff30084868dba Mon Sep 17 00:00:00 2001 From: Blaze Date: Tue, 5 Nov 2024 18:17:34 +0100 Subject: [PATCH] nox pipeline --- lightbulb/client.py | 4 ++-- lightbulb/loaders.py | 4 ++-- lightbulb/tasks.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lightbulb/client.py b/lightbulb/client.py index 7d6c59b2..bf3bf627 100644 --- a/lightbulb/client.py +++ b/lightbulb/client.py @@ -332,9 +332,9 @@ 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 behavior, and the task won't be canceled, + Setting this to a negative number will disable this behavior, and the task won't be canceled, no matter how often the task fails. - max_invocations: The maximum number of times the task can be invoked before being stopped. + max_invocations: The maximum number of times the task can be invoked before being stopped. Setting this to a negative number will disable this behavior, allowing unlimited invocations. Note: diff --git a/lightbulb/loaders.py b/lightbulb/loaders.py index 48f7deab..b25e5660 100644 --- a/lightbulb/loaders.py +++ b/lightbulb/loaders.py @@ -400,9 +400,9 @@ def task( 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 behavior, and the task won't be canceled, + Setting this to a negative number will disable this behavior, and the task won't be canceled, no matter how often the task fails. - max_invocations: The maximum number of times the task can be invoked before being stopped. + max_invocations: The maximum number of times the task can be invoked before being stopped. Setting this to a negative number will disable this behavior, allowing unlimited invocations. Example: diff --git a/lightbulb/tasks.py b/lightbulb/tasks.py index 5579226a..1dbfcb43 100644 --- a/lightbulb/tasks.py +++ b/lightbulb/tasks.py @@ -223,9 +223,9 @@ class Task: 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 behavior, and the task won't be canceled, + Setting this to a negative number will disable this behavior, and the task won't be canceled, no matter how often the task fails. - max_invocations: The maximum number of times the task can be invoked before being stopped. + max_invocations: The maximum number of times the task can be invoked before being stopped. Setting this to a negative number will disable this behavior, allowing unlimited invocations. """