Skip to content

Commit

Permalink
progress update cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BitProcessor committed Feb 8, 2021
1 parent d4c1d06 commit 1e71bbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ def create_jira_backup(self):
time.sleep(self.wait)
while 'result' not in self.backup_status.keys():
self.backup_status = json.loads(self.session.get(jira_backup_status).text)
print('Current status: {status} {progress}; {description}'.format(
print('Current status: {status} - {progress}%'.format(
status=self.backup_status['status'],
progress=self.backup_status['progress'],
description=self.backup_status['description']))
progress=self.backup_status['progress']))
time.sleep(self.wait)
return '{prefix}/{result_id}'.format(
prefix=os.environ['HOST_URL'] + '/plugins/servlet', result_id=self.backup_status['result'])

def s3_cleanup(self, prefix):

print('-> Removing old backups from S3, prefix: %s', prefix)
objs = []
kwargs = { 'Bucket': os.environ['S3_BUCKET'], 'Prefix': prefix }
while True:
Expand Down

0 comments on commit 1e71bbb

Please sign in to comment.