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

feat: Add server async support flags at the [Online/Offline]Store impl level #7

Closed
wants to merge 3 commits into from

Conversation

robhowley
Copy link
Owner

What this PR does / why we need it:

Which issue(s) this PR fixes:

Misc

dependabot bot and others added 2 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>
@robhowley robhowley changed the title specify async support at the [Online/Offline]Store impl level feat: Add server async support flags at the [Online/Offline]Store impl level Oct 15, 2024
Comment on lines +92 to +94
@property
def async_supported(self) -> SupportedAsyncMethods:
return SupportedAsyncMethods(read=True)
Copy link
Owner Author

@robhowley robhowley Oct 15, 2024

Choose a reason for hiding this comment

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

the default impl of this property has

online:
    read: False
    write: False
offline:
    read: False
    write: False

override and mark supported operations as they're added. dynamo support async reads so just set that value.

Comment on lines +155 to +160
async_supported = store._get_provider().async_supported
if async_supported.online.read:

@_post_get_online_features
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.

build our endpoints based upon the SupportedAsyncMethods values

@robhowley robhowley changed the base branch from master to rh-async-config October 16, 2024 00:41
@robhowley robhowley changed the base branch from rh-async-config to master October 16, 2024 00:41
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