Skip to content

Commit

Permalink
fix: dsa upload log message
Browse files Browse the repository at this point in the history
  • Loading branch information
raylim committed Nov 3, 2023
1 parent 00695a5 commit 69e5802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/luna/pathology/dsa/dsa_api_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def copy_item(gc, item_id: str, destination_id: str):
raise RuntimeError("Can not copy item")


def check_annotation_exists(
def check_annotation_exists_with_retry(
gc: girder_client.GirderClient,
item_uuid: str,
annotation_name: str,
Expand Down Expand Up @@ -427,13 +427,13 @@ def push_annotation_to_dsa_image(
)

# Wait for annotation to be processed
annotation_id = check_annotation_exists(
annotation_id = check_annotation_exists_with_retry(
gc, item_uuid, annotation_name, retry_count=100, delay=20
)
if annotation_id:
logger.info(f"Annotation successfully pushed to DSA as {annotation_id}.")

logger.info("Annotation pushed to DSA but still processing.")
else:
logger.info("Annotation pushed to DSA but still processing.")
logger.info(f"Time to push annotation {time.time() - start}")
logger.info(f"{uri}/histomics#?image={item_uuid}")
return annotation_id
Expand Down

0 comments on commit 69e5802

Please sign in to comment.