Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Adds docs about using ProgressBar with threads
Browse files Browse the repository at this point in the history
  • Loading branch information
dkliban committed Dec 4, 2016
1 parent 950bb58 commit d281930
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/pulp/app/models/progress.py
Expand Up @@ -181,6 +181,10 @@ class ProgressBar(ProgressReport):
ProgressBar objects are associated with a Task and auto-discover and populate the task id when
saved.
Plugin writers should use a single instance of a ProgressBar when using threads to perform work
in parallel. Each thread should use the same ProgressBar instance when calling increment() or
using the iter() convenience method.
"""

class Meta:
Expand Down

0 comments on commit d281930

Please sign in to comment.