Skip to content

Improving annotation upload for source composites #408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 26, 2025
Merged

Improving annotation upload for source composites #408

merged 9 commits into from
Mar 26, 2025

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