-
Notifications
You must be signed in to change notification settings - Fork 179
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
Conversation
There was a problem hiding this 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.
bigml/api_handlers/sourcehandler.py
Outdated
self.ok(source) | ||
if source["error"] is not None: | ||
# retrying in case update is temporarily unavailable | ||
time.sleep(1) |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
bigml/api_handlers/sourcehandler.py
Outdated
if source["error"] is not None: | ||
LOGGER.error("WARNING: Some annotations were not" | ||
" updated (%s)", | ||
new_batch) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
No description provided.