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

removed logs #4982

Merged
merged 2 commits into from
Jan 9, 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
6 changes: 1 addition & 5 deletions request-management-api/request_api/services/recordservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,9 @@ def __triggerpdfstitchservice(self, requestid, ministryrequestid, message, useri
"attributes": json.JSONEncoder().encode(message["attributes"]),
"totalfilesize": message["totalfilesize"]
}
print("final message >>>>>> ", streamobject)
if message["totalfilesize"] > int(self.stitchinglargefilesizelimit) and self.pdfstitchstreamkey_largefiles:
print("pdfstitchstreamkey_largefiles = ", self.pdfstitchstreamkey_largefiles)
return eventqueueservice().add(self.pdfstitchstreamkey_largefiles, streamobject)
elif self.pdfstitchstreamkey:
print("pdfstitchstreamkey = ", self.pdfstitchstreamkey)
return eventqueueservice().add(self.pdfstitchstreamkey, streamobject)
else:
print("pdfstitch stream key is missing. Message is not pushed to the stream.")
Expand All @@ -249,8 +246,7 @@ def __bulkcreate(self, requestid, ministryrequestid, records, userid):
if (dbresponse.success):
#processingrecords = [{**record, **{"recordid": dbresponse.args[0][record['s3uripath']]['recordid']}} for record in records if not record['attributes'].get('incompatible', False)]
processingrecords = [{**record, **{"recordid": dbresponse.args[0][record['s3uripath']]['recordid']}} for record in records]

print(processingrecords)

# record all jobs before sending first redis stream message to avoid race condition
jobids, err = self.makedocreviewerrequest('POST', '/api/jobstatus', {
'records': processingrecords,
Expand Down
Loading