-
Notifications
You must be signed in to change notification settings - Fork 0
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
Accept api_key and send pebblo-server's response to daxa cloud. #12
Conversation
rahul-trip
commented
Mar 21, 2024
•
edited
Loading
edited
- Added support for api_key for daxa cloud
- response of pebblo-server's loader/doc api call is now sent to daxa-cloud loader/doc api call as a payload.docs
- timeout for loader/doc post call to pebblo-server is now increased to 300 seconds
4cdfd74
to
1b31682
Compare
c2ebcfe
to
ce8a77a
Compare
ce8a77a
to
d45a985
Compare
5405879
to
55234be
Compare
daxa_response.json(), | ||
) | ||
except requests.exceptions.RequestException: | ||
logger.warning("Unable to reach Daxa cloud server.") |
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.
Use of "Daxa" and "Pebblo" interchangeably is confusing.
- Url(202) => pebblo_cloud_url
- Response(203) => daxa_response
- Warn log(218) => Daxa cloud server
len {len(resp.request.body if resp.request.body else [])} \ | ||
response status{resp.status_code} body {resp.json()}" | ||
) | ||
"send_loader_doc: request url %s, body %s len %s response status %s\ |
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.
Is there a specific reason for switching from f-string formatting to %-formatting?
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.
Yes, when logging it is recommended to use lazy strings, meaning the string formatting will only get evaluated if the logging string will get put out. E.g. a message with logging level debug won't get evaluated when the logging level is set to information or higher.
refer: https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/logging-not-lazy.html
please fix lint errors |
55234be
to
f30bc52
Compare
Signed-off-by: Rahul Tripathi <[email protected]>
bc759f8
to
121d31f
Compare
f30bc52
to
39e2a7d
Compare