Skip to content

Commit

Permalink
chore: remove non-CLI printouts (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Brandão <[email protected]>
  • Loading branch information
HolyMichael authored Aug 11, 2023
1 parent c56b27e commit 1447f57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions deepsearch/cps/cli/data_indices_typer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions deepsearch/cps/data_indices/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
1 change: 0 additions & 1 deletion deepsearch/documents/core/common_routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ class ProgressBarParameters:


progressbar = ProgressBarParameters()
success_message = "Completed successfully"

0 comments on commit 1447f57

Please sign in to comment.