Skip to content

Fix for response_handler - #371

Merged
gsaluja9 merged 7 commits into
developfrom
fix_response_handler
Jan 25, 2024
Merged

gsaluja9 merged 7 commits into
developfrom
fix_response_handler

Conversation

@luisremis

@luisremis luisremis commented Jan 18, 2024 •

Copy link
Copy Markdown
Contributor

Currently, response_handler is not being passed the right blobs corresponding to the response. This Branch has a workaround that will pass the right blobs under the special condition that we have BATCH_SIZE=1, but there is a need for a more general fix.

This branch is needed for nsfw_detector to work: https://github.com/aperture-data/demos/pull/148

@gsaluja9 gsaluja9 changed the title Hack fix for response_handler Fix for response_handler Jan 25, 2024
@gsaluja9
gsaluja9 marked this pull request as ready for review January 25, 2024 15:01
@gsaluja9

gsaluja9 commented Jan 25, 2024 •

Copy link
Copy Markdown
Contributor

Currently, response_handler is not being passed the right blobs corresponding to the response. This Branch has a workaround that will pass the right blobs under the special condition that we have BATCH_SIZE=1, but there is a need for a more general fix.

This branch is needed for nsfw_detector to work: aperture-data/demos#148

This has been addresses and a test case added (with mock DB) added to it.
TODO: run against ingest with various batch sizes as mentioned in original description.

@gsaluja9
gsaluja9 requested a review from drewaogle January 25, 2024 16:34
@gsaluja9

Copy link
Copy Markdown
Contributor

With limit and offset defined as 128, I was able to set a batch size of 2 and got a blobs array of 256, and 2 invocations of response handlers, with 128 blobs each.

@gsaluja9
gsaluja9 merged commit 5682094 into develop Jan 25, 2024
@gsaluja9

Copy link
Copy Markdown
Contributor

Do not delete this branch for cleanup till demos is updated.

@gsaluja9
gsaluja9 deleted the fix_response_handler branch February 20, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants