Skip to content

Conversation

mmerce
Copy link
Member

@mmerce mmerce commented Mar 21, 2025

No description provided.

@mmerce mmerce requested a review from jaor March 21, 2025 17:25
Copy link
Member

@jaor jaor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. just a suggestion below.

self.ok(source)
if source["error"] is not None:
# retrying in case update is temporarily unavailable
time.sleep(1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would perhaps wait a little longer, or make two or three retries...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

if source["error"] is not None:
LOGGER.error("WARNING: Some annotations were not"
" updated (%s)",
new_batch)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps it'd be a good idea to log also source["error"] here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, though the error message and code are not very reprentative so far

@jaor jaor merged commit 06859b4 into master Mar 26, 2025
5 of 9 checks passed
@jaor jaor deleted the dgc-ann branch March 26, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants