Skip to content

Commit fc2ab2b

Browse files
committed
remove rate limits from increment
1 parent 93df85f commit fc2ab2b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

taskbadger/sdk.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -327,23 +327,14 @@ def update_status(self, status: StatusEnum):
327327
"""Update the task status"""
328328
self.update(status=status)
329329

330-
def increment_progress(self, amount: int, value_step: int = None, rate_limit: int = None):
330+
def increment_progress(self, amount: int):
331331
"""Increment the task progress by adding the specified amount to the current value.
332332
If the task value is not set it will be set to `amount`.
333-
334-
Arguments:
335-
amount: The amount to increment the task value by.
336-
value_step: The minimum change in value required to trigger an update.
337-
rate_limit: The minimum interval between updates in seconds.
338-
339-
If either `value_step` or `rate_limit` is set, the task will only be updated if the
340-
specified conditions are met. If both are set, the task will be updated if either
341-
condition is met.
342333
"""
343334
value = self._task.value
344335
value_norm = value if value is not UNSET and value is not None else 0
345336
new_amount = value_norm + amount
346-
self.update_progress(new_amount, value_step, rate_limit)
337+
self.update(value=new_amount)
347338

348339
def update_progress(self, value: int, value_step: int = None, rate_limit: int = None):
349340
"""Update task progress.

0 commit comments

Comments
 (0)