File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments