Commit f4aa174e authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed repack cli after rebase.

parent a64348e1
Pipeline #117976 passed with stages
in 26 minutes and 26 seconds
......@@ -461,13 +461,17 @@ def process(ctx, uploads, parallel: int, process_running: bool, setting: typing.
@uploads.command(help='Repack selected uploads.')
@click.argument('UPLOADS', nargs=-1)
@click.option('--parallel', default=1, type=int, help='Use the given amount of parallel processes. Default is 1.')
def re_pack(ctx, uploads, parallel: int):
def re_pack(ctx, uploads):
_, uploads = _query_uploads(uploads, **ctx.obj.uploads_kwargs)
uploads, parallel, lambda upload: upload.re_pack(), 're-packing',
for upload in uploads:
if not upload.published:
print(f'Cannot repack unpublished upload {upload.upload_id}')
print(f'successfully re-packed {upload.upload_id}')
@uploads.command(help='Attempt to abort the processing of uploads.')
......@@ -233,7 +233,7 @@ class TestAdminUploads:
result = invoke_cli(
cli, ['admin', 'uploads', 're-pack', '--parallel', '2', upload_id], catch_exceptions=False)
cli, ['admin', 'uploads', 're-pack', upload_id], catch_exceptions=False)
assert result.exit_code == 0
assert 're-pack' in result.stdout
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment