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 5, 2016
1 parent 7595b3e commit eb2cd45
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.
When using threads to update a ProgressBar in parallel, it is recommended all threads share the
same in-memory instance. Django does not synchronize in-memory model instances, so multiple
instances of a specific ProgressBar will diverge as they are written to in separate threads.
"""

class Meta:
Expand Down

0 comments on commit eb2cd45

Please sign in to comment.