mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-26 19:35:12 +00:00
backup_task: Report uploading progress
Do it by passing reference to s3::upload_progress_monitor object that sits on task impl itself. Different files' uploads would then update the monitor with their sizes and uploaded counters. The structure is reported by get_progress() method. Unit size is set to be bytes. Test is updated. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
@@ -69,6 +69,7 @@ async def test_simple_backup(manager: ManagerClient, s3_server):
|
||||
print(f'Status: {status}, waiting to finish')
|
||||
status = await manager.api.wait_task(server.ip_addr, tid)
|
||||
assert (status is not None) and (status['state'] == 'done')
|
||||
assert (status['progress_total'] > 0) and (status['progress_completed'] == status['progress_total'])
|
||||
|
||||
objects = set([ o.key for o in get_s3_resource(s3_server).Bucket(s3_server.bucket_name).objects.all() ])
|
||||
for f in files:
|
||||
|
||||
Reference in New Issue
Block a user