Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix progress save() throttling.
closes #3003
  • Loading branch information
jortel committed Sep 26, 2017
1 parent 18dc628 commit 24af39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/pulpcore/app/models/progress.py
Expand Up @@ -84,10 +84,10 @@ def save(self, *args, **kwargs):
if self._using_context_manager and self._last_save_time:
if now - self._last_save_time >= datetime.timedelta(milliseconds=BATCH_INTERVAL):
super(ProgressReport, self).save(*args, **kwargs)
self._last_save_time = now
else:
super(ProgressReport, self).save(*args, **kwargs)

self._last_save_time = now
self._last_save_time = now

def __enter__(self):
"""
Expand Down

0 comments on commit 24af39e

Please sign in to comment.