-
Notifications
You must be signed in to change notification settings - Fork 10
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
create new python script for sending webhooks in a directory #402
Conversation
9f88ef1
to
7ca3918
Compare
7ca3918
to
039c569
Compare
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.
/lgtm
just one question
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: harshad16 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
039c569
to
4e24efe
Compare
New changes are detected. LGTM label has been removed. |
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.
lgtm
just one question
send_webhooks.py
Outdated
_LOGGER.exception(e) | ||
|
||
k8.client.CoreV1Api.delete_namespaced_secret(name=f"callback-{document_id}", namespace=secret_namespace) |
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.
secret would be deleted even if exception occures as we are not raising it.
is this intentional ?
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 don't think the onus is on us if webhook fails to deliver, the most common reasons it would fail in my opinion is if an invalid URL or authentication is provided. Let me know what you think.
4e24efe
to
088e2bc
Compare
088e2bc
to
8837cc7
Compare
8837cc7
to
a9fca5d
Compare
created a simple python script which iterates over a directory and sends a post request to the specified url with the completed document id and any client data that came with the original request.
a9fca5d
to
965c892
Compare
created a simple python script which iterates over a directory and
sends a post request to the specified url with the completed
document id and any client data that came with the original
request.
Related Issues and Dependencies
closes: #396
This introduces a breaking change