MCPcopy Create free account
hub / github.com/czue/celery-progress / increment_progress

Method increment_progress

celery_progress/backend.py:39–43  ·  view source on GitHub ↗

Increments progress by one, with an optional description. Useful if the caller doesn't know the total.

(self, by=1, description="")

Source from the content-addressed store, hash-verified

37 self.description = description
38
39 def increment_progress(self, by=1, description=""):
40 """
41 Increments progress by one, with an optional description. Useful if the caller doesn't know the total.
42 """
43 self.set_progress(self.current + by, self.total, description)
44
45
46

Callers

nothing calls this directly

Calls 1

set_progressMethod · 0.95

Tested by

no test coverage detected