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

Add max_batch_inputs and block_duration to message Function #1979

Closed

Conversation

cathyzbn
Copy link
Contributor

@cathyzbn cathyzbn commented Jul 5, 2024

Describe your changes

Protoc changes to to support batching

Backward/forward compatibility checks

Check these boxes or delete any item (or this section) if not relevant for this PR.

  • Client+Server: this change is compatible with old servers
  • Client forward compatibility: this change ensures client can accept data intended for later versions of itself

Note on protobuf: protobuf message changes in one place may have impact to
multiple entities (client, server, worker, database). See points above.

@cathyzbn cathyzbn requested a review from gongy July 5, 2024 22:14
@@ -941,6 +941,9 @@ message Function {

string use_function_id = 54; // for class methods use this function id instead for invocations - the *referenced* function should have is_class=True
string use_method_name = 55; // for class methods - this method name needs to be included in the FunctionInput

int32 max_batch_inputs = 56; // Maximum number of inputs per batch
float block_duration = 57; // Time to block before a response is needed
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we put the units in the field name, or failing that, the comment?

@cathyzbn cathyzbn closed this Jul 8, 2024
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.

None yet

2 participants