diff --git a/deepsearch/cps/cli/data_indices_typer.py b/deepsearch/cps/cli/data_indices_typer.py index ade0f569..91716825 100644 --- a/deepsearch/cps/cli/data_indices_typer.py +++ b/deepsearch/cps/cli/data_indices_typer.py @@ -165,6 +165,8 @@ def upload_files( s3_coordinates=cos_coordinates, ) + typer.echo("Tasks have been queued successfully") + @app.command( name="add-attachment", help="Add attachment to a index item", no_args_is_help=True diff --git a/deepsearch/cps/data_indices/utils.py b/deepsearch/cps/data_indices/utils.py index 53058035..69f263c1 100644 --- a/deepsearch/cps/data_indices/utils.py +++ b/deepsearch/cps/data_indices/utils.py @@ -13,7 +13,7 @@ from deepsearch.cps.client.components.data_indices import S3Coordinates from deepsearch.cps.client.components.elastic import ElasticProjectDataCollectionSource from deepsearch.documents.core import convert, input_process -from deepsearch.documents.core.common_routines import progressbar, success_message +from deepsearch.documents.core.common_routines import progressbar from deepsearch.documents.core.utils import cleanup, create_root_dir logger = logging.getLogger(__name__) @@ -92,7 +92,6 @@ def process_url_input( statuses = convert.check_cps_status_running_tasks( api=api, cps_proj_key=coords.proj_key, task_ids=task_ids ) - print(success_message) return @@ -158,7 +157,6 @@ def process_local_file( statuses = convert.check_cps_status_running_tasks( api=api, cps_proj_key=coords.proj_key, task_ids=task_ids ) - print(success_message) cleanup(root_dir=root_dir) return @@ -196,5 +194,4 @@ def process_external_cos( statuses = convert.check_cps_status_running_tasks( api=api, cps_proj_key=coords.proj_key, task_ids=task_ids ) - print(success_message) return diff --git a/deepsearch/documents/core/common_routines.py b/deepsearch/documents/core/common_routines.py index 80783190..b54b3ce3 100644 --- a/deepsearch/documents/core/common_routines.py +++ b/deepsearch/documents/core/common_routines.py @@ -15,4 +15,3 @@ class ProgressBarParameters: progressbar = ProgressBarParameters() -success_message = "Completed successfully"