Skip to content

Conversation

@robhowley
Copy link
Owner

@robhowley robhowley commented Oct 16, 2024

see this git issue in feast

What this PR does / why we need it:

Which issue(s) this PR fixes:

Misc

dependabot bot and others added 4 commits October 15, 2024 16:04
…ng (feast-dev#4610)

Bumps org.apache.avro:avro from 1.11.3 to 1.11.4.

---
updated-dependencies:
- dependency-name: org.apache.avro:avro
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependencies=[Depends(inject_user_details)],
)
def get_online_features(body=Depends(get_body)):
async def get_online_features(body=Depends(get_body)):
Copy link
Owner Author

Choose a reason for hiding this comment

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

make endpoint async ...

Comment on lines +155 to +160
if store._get_provider().async_supported.online.read:
response = await store.get_online_features_async(**read_params)
else:
response = await run_in_threadpool(
lambda: store.get_online_features(**read_params)
)
Copy link
Owner Author

Choose a reason for hiding this comment

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

use the fastapi recommended run_in_threadpool to handle the sync case.

@robhowley robhowley changed the title perf: run sync ops in threadpool perf: Run sync ops in threadpool Oct 16, 2024
@robhowley robhowley force-pushed the master branch 2 times, most recently from df8ba6e to 6ca3b47 Compare October 17, 2024 15:37
@robhowley robhowley closed this Oct 18, 2024
@robhowley robhowley deleted the rh-run-threadpool branch October 18, 2024 01:08
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.

3 participants