Skip to content
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

Request lock release whilst sending XML to marklogic #431

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/lambdas/push_enriched_xml/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def patch_judgment_request(
f"{api_endpoint}judgment/{query}",
auth=HTTPBasicAuth(username, pw),
data=data.encode(),
params={"unlock": True},
)
print(response)
response.raise_for_status()
Expand Down Expand Up @@ -110,9 +111,6 @@ def process_event(sqs_rec: SQSRecord) -> None:
api_endpoint, judgment_uri, file_content, API_USERNAME, API_PASSWORD
)

# release the lock
release_lock(api_endpoint, judgment_uri, API_USERNAME, API_PASSWORD)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is no longer needed because the lock will be released as a part of patching the file.


############################################
# - INSTANTIATE CLASS HELPERS
Expand Down
Loading