Skip to content

Commit

Permalink
nox pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
syncblaze committed Nov 5, 2024
1 parent 9175ac2 commit 81b9e6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lightbulb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lightbulb/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lightbulb/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down

0 comments on commit 81b9e6b

Please sign in to comment.